cmd_immap.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. /*
  2. * (C) Copyright 2000-2003
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. /*
  24. * MPC8xx/MPC8260 Internal Memory Map Functions
  25. */
  26. #include <common.h>
  27. #include <command.h>
  28. #if (CONFIG_COMMANDS & CFG_CMD_IMMAP) && \
  29. (defined(CONFIG_8xx) || defined(CONFIG_8260))
  30. #if defined(CONFIG_8xx)
  31. #include <asm/8xx_immap.h>
  32. #include <commproc.h>
  33. #elif defined(CONFIG_8260)
  34. #include <asm/immap_8260.h>
  35. #include <asm/cpm_8260.h>
  36. #include <asm/iopin_8260.h>
  37. #endif
  38. static void
  39. unimplemented ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  40. {
  41. printf ("Sorry, but the '%s' command has not been implemented\n",
  42. cmdtp->name);
  43. }
  44. int
  45. do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  46. {
  47. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  48. #if defined(CONFIG_8xx)
  49. volatile sysconf8xx_t *sc = &immap->im_siu_conf;
  50. #elif defined(CONFIG_8260)
  51. volatile sysconf8260_t *sc = &immap->im_siu_conf;
  52. #endif
  53. printf ("SIUMCR= %08x SYPCR = %08x\n", sc->sc_siumcr, sc->sc_sypcr);
  54. #if defined(CONFIG_8xx)
  55. printf ("SWT = %08x\n", sc->sc_swt);
  56. printf ("SIPEND= %08x SIMASK= %08x\n", sc->sc_sipend, sc->sc_simask);
  57. printf ("SIEL = %08x SIVEC = %08x\n", sc->sc_siel, sc->sc_sivec);
  58. printf ("TESR = %08x SDCR = %08x\n", sc->sc_tesr, sc->sc_sdcr);
  59. #elif defined(CONFIG_8260)
  60. printf ("BCR = %08x\n", sc->sc_bcr);
  61. printf ("P_ACR = %02x P_ALRH= %08x P_ALRL= %08x\n",
  62. sc->sc_ppc_acr, sc->sc_ppc_alrh, sc->sc_ppc_alrl);
  63. printf ("L_ACR = %02x L_ALRH= %08x L_ALRL= %08x\n",
  64. sc->sc_lcl_acr, sc->sc_lcl_alrh, sc->sc_lcl_alrl);
  65. printf ("PTESR1= %08x PTESR2= %08x\n", sc->sc_tescr1, sc->sc_tescr2);
  66. printf ("LTESR1= %08x LTESR2= %08x\n", sc->sc_ltescr1, sc->sc_ltescr2);
  67. printf ("PDTEA = %08x PDTEM = %02x\n", sc->sc_pdtea, sc->sc_pdtem);
  68. printf ("LDTEA = %08x LDTEM = %02x\n", sc->sc_ldtea, sc->sc_ldtem);
  69. #endif
  70. return 0;
  71. }
  72. int
  73. do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  74. {
  75. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  76. #if defined(CONFIG_8xx)
  77. volatile memctl8xx_t *memctl = &immap->im_memctl;
  78. int nbanks = 8;
  79. #elif defined(CONFIG_8260)
  80. volatile memctl8260_t *memctl = &immap->im_memctl;
  81. int nbanks = 12;
  82. #endif
  83. volatile uint *p = &memctl->memc_br0;
  84. int i;
  85. for (i = 0; i < nbanks; i++, p += 2) {
  86. if (i < 10) {
  87. printf ("BR%d = %08x OR%d = %08x\n",
  88. i, p[0], i, p[1]);
  89. } else {
  90. printf ("BR%d = %08x OR%d = %08x\n",
  91. i, p[0], i, p[1]);
  92. }
  93. }
  94. printf ("MAR = %08x", memctl->memc_mar);
  95. #if defined(CONFIG_8xx)
  96. printf (" MCR = %08x\n", memctl->memc_mcr);
  97. #elif defined(CONFIG_8260)
  98. putc ('\n');
  99. #endif
  100. printf ("MAMR = %08x MBMR = %08x",
  101. memctl->memc_mamr, memctl->memc_mbmr);
  102. #if defined(CONFIG_8xx)
  103. printf ("\nMSTAT = %04x\n", memctl->memc_mstat);
  104. #elif defined(CONFIG_8260)
  105. printf (" MCMR = %08x\n", memctl->memc_mcmr);
  106. #endif
  107. printf ("MPTPR = %04x MDR = %08x\n",
  108. memctl->memc_mptpr, memctl->memc_mdr);
  109. #if defined(CONFIG_8260)
  110. printf ("PSDMR = %08x LSDMR = %08x\n",
  111. memctl->memc_psdmr, memctl->memc_lsdmr);
  112. printf ("PURT = %02x PSRT = %02x\n",
  113. memctl->memc_purt, memctl->memc_psrt);
  114. printf ("LURT = %02x LSRT = %02x\n",
  115. memctl->memc_lurt, memctl->memc_lsrt);
  116. printf ("IMMR = %08x\n", memctl->memc_immr);
  117. #endif
  118. return 0;
  119. }
  120. int
  121. do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  122. {
  123. unimplemented (cmdtp, flag, argc, argv);
  124. return 0;
  125. }
  126. #ifdef CONFIG_8260
  127. int
  128. do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  129. {
  130. unimplemented (cmdtp, flag, argc, argv);
  131. return 0;
  132. }
  133. #endif
  134. int
  135. do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  136. {
  137. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  138. #if defined(CONFIG_8xx)
  139. volatile car8xx_t *car = &immap->im_clkrst;
  140. #elif defined(CONFIG_8260)
  141. volatile car8260_t *car = &immap->im_clkrst;
  142. #endif
  143. #if defined(CONFIG_8xx)
  144. printf ("SCCR = %08x\n", car->car_sccr);
  145. printf ("PLPRCR= %08x\n", car->car_plprcr);
  146. printf ("RSR = %08x\n", car->car_rsr);
  147. #elif defined(CONFIG_8260)
  148. printf ("SCCR = %08x\n", car->car_sccr);
  149. printf ("SCMR = %08x\n", car->car_scmr);
  150. printf ("RSR = %08x\n", car->car_rsr);
  151. printf ("RMR = %08x\n", car->car_rmr);
  152. #endif
  153. return 0;
  154. }
  155. static int counter;
  156. static void
  157. header(void)
  158. {
  159. char *data = "\
  160. -------------------------------- --------------------------------\
  161. 00000000001111111111222222222233 00000000001111111111222222222233\
  162. 01234567890123456789012345678901 01234567890123456789012345678901\
  163. -------------------------------- --------------------------------\
  164. ";
  165. int i;
  166. if (counter % 2)
  167. putc('\n');
  168. counter = 0;
  169. for (i = 0; i < 4; i++, data += 79)
  170. printf("%.79s\n", data);
  171. }
  172. static void binary (char *label, uint value, int nbits)
  173. {
  174. uint mask = 1 << (nbits - 1);
  175. int i, second = (counter++ % 2);
  176. if (second)
  177. putc (' ');
  178. puts (label);
  179. for (i = 32 + 1; i != nbits; i--)
  180. putc (' ');
  181. while (mask != 0) {
  182. if (value & mask)
  183. putc ('1');
  184. else
  185. putc ('0');
  186. mask >>= 1;
  187. }
  188. if (second)
  189. putc ('\n');
  190. }
  191. #if defined(CONFIG_8xx)
  192. #define PA_NBITS 16
  193. #define PA_NB_ODR 8
  194. #define PB_NBITS 18
  195. #define PB_NB_ODR 16
  196. #define PC_NBITS 12
  197. #define PD_NBITS 13
  198. #elif defined(CONFIG_8260)
  199. #define PA_NBITS 32
  200. #define PA_NB_ODR 32
  201. #define PB_NBITS 28
  202. #define PB_NB_ODR 28
  203. #define PC_NBITS 32
  204. #define PD_NBITS 28
  205. #endif
  206. int
  207. do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  208. {
  209. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  210. #if defined(CONFIG_8xx)
  211. volatile iop8xx_t *iop = &immap->im_ioport;
  212. volatile ushort *l, *r;
  213. #elif defined(CONFIG_8260)
  214. volatile iop8260_t *iop = &immap->im_ioport;
  215. volatile uint *l, *r;
  216. #endif
  217. volatile uint *R;
  218. counter = 0;
  219. header ();
  220. /*
  221. * Ports A & B
  222. */
  223. #if defined(CONFIG_8xx)
  224. l = &iop->iop_padir;
  225. R = &immap->im_cpm.cp_pbdir;
  226. #elif defined(CONFIG_8260)
  227. l = &iop->iop_pdira;
  228. R = &iop->iop_pdirb;
  229. #endif
  230. binary ("PA_DIR", *l++, PA_NBITS);
  231. binary ("PB_DIR", *R++, PB_NBITS);
  232. binary ("PA_PAR", *l++, PA_NBITS);
  233. binary ("PB_PAR", *R++, PB_NBITS);
  234. #if defined(CONFIG_8260)
  235. binary ("PA_SOR", *l++, PA_NBITS);
  236. binary ("PB_SOR", *R++, PB_NBITS);
  237. #endif
  238. binary ("PA_ODR", *l++, PA_NB_ODR);
  239. binary ("PB_ODR", *R++, PB_NB_ODR);
  240. binary ("PA_DAT", *l++, PA_NBITS);
  241. binary ("PB_DAT", *R++, PB_NBITS);
  242. header ();
  243. /*
  244. * Ports C & D
  245. */
  246. #if defined(CONFIG_8xx)
  247. l = &iop->iop_pcdir;
  248. r = &iop->iop_pddir;
  249. #elif defined(CONFIG_8260)
  250. l = &iop->iop_pdirc;
  251. r = &iop->iop_pdird;
  252. #endif
  253. binary ("PC_DIR", *l++, PC_NBITS);
  254. binary ("PD_DIR", *r++, PD_NBITS);
  255. binary ("PC_PAR", *l++, PC_NBITS);
  256. binary ("PD_PAR", *r++, PD_NBITS);
  257. #if defined(CONFIG_8xx)
  258. binary ("PC_SO ", *l++, PC_NBITS);
  259. binary (" ", 0, 0);
  260. r++;
  261. #elif defined(CONFIG_8260)
  262. binary ("PC_SOR", *l++, PC_NBITS);
  263. binary ("PD_SOR", *r++, PD_NBITS);
  264. binary ("PC_ODR", *l++, PC_NBITS);
  265. binary ("PD_ODR", *r++, PD_NBITS);
  266. #endif
  267. binary ("PC_DAT", *l++, PC_NBITS);
  268. binary ("PD_DAT", *r++, PD_NBITS);
  269. #if defined(CONFIG_8xx)
  270. binary ("PC_INT", *l++, PC_NBITS);
  271. #endif
  272. header ();
  273. return 0;
  274. }
  275. /*
  276. * set the io pins
  277. * this needs a clean up for smaller tighter code
  278. * use *uint and set the address based on cmd + port
  279. */
  280. int
  281. do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  282. {
  283. #if defined(CONFIG_8260)
  284. uint rcode = 0;
  285. static uint port = 0;
  286. static uint pin = 0;
  287. static uint value = 0;
  288. static enum { DIR, PAR, SOR, ODR, DAT } cmd = DAT;
  289. iopin_t iopin;
  290. if (argc != 5) {
  291. puts ("iopset PORT PIN CMD VALUE\n");
  292. return 1;
  293. }
  294. port = argv[1][0] - 'A';
  295. if (port > 3)
  296. port -= 0x20;
  297. if (port > 3)
  298. rcode = 1;
  299. pin = simple_strtol (argv[2], NULL, 10);
  300. if (pin > 31)
  301. rcode = 1;
  302. switch (argv[3][0]) {
  303. case 'd':
  304. if (argv[3][1] == 'a')
  305. cmd = DAT;
  306. else if (argv[3][1] == 'i')
  307. cmd = DIR;
  308. else
  309. rcode = 1;
  310. break;
  311. case 'p':
  312. cmd = PAR;
  313. break;
  314. case 'o':
  315. cmd = ODR;
  316. break;
  317. case 's':
  318. cmd = SOR;
  319. break;
  320. default:
  321. printf ("iopset: unknown command %s\n", argv[3]);
  322. rcode = 1;
  323. }
  324. if (argv[4][0] == '1')
  325. value = 1;
  326. else if (argv[4][0] == '0')
  327. value = 0;
  328. else
  329. rcode = 1;
  330. if (rcode == 0) {
  331. iopin.port = port;
  332. iopin.pin = pin;
  333. switch (cmd) {
  334. case DIR:
  335. if (value)
  336. iopin_set_out (&iopin);
  337. else
  338. iopin_set_in (&iopin);
  339. break;
  340. case PAR:
  341. if (value)
  342. iopin_set_ded (&iopin);
  343. else
  344. iopin_set_gen (&iopin);
  345. break;
  346. case SOR:
  347. if (value)
  348. iopin_set_opt2 (&iopin);
  349. else
  350. iopin_set_opt1 (&iopin);
  351. break;
  352. case ODR:
  353. if (value)
  354. iopin_set_odr (&iopin);
  355. else
  356. iopin_set_act (&iopin);
  357. break;
  358. case DAT:
  359. if (value)
  360. iopin_set_high (&iopin);
  361. else
  362. iopin_set_low (&iopin);
  363. break;
  364. }
  365. }
  366. return rcode;
  367. #else
  368. unimplemented (cmdtp, flag, argc, argv);
  369. return 0;
  370. #endif
  371. }
  372. int
  373. do_dmainfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  374. {
  375. unimplemented (cmdtp, flag, argc, argv);
  376. return 0;
  377. }
  378. int
  379. do_fccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  380. {
  381. unimplemented (cmdtp, flag, argc, argv);
  382. return 0;
  383. }
  384. static void prbrg (int n, uint val)
  385. {
  386. uint extc = (val >> 14) & 3;
  387. uint cd = (val & CPM_BRG_CD_MASK) >> 1;
  388. uint div16 = (val & CPM_BRG_DIV16) != 0;
  389. #if defined(CONFIG_8xx)
  390. DECLARE_GLOBAL_DATA_PTR;
  391. ulong clock = gd->cpu_clk;
  392. #elif defined(CONFIG_8260)
  393. DECLARE_GLOBAL_DATA_PTR;
  394. ulong clock = gd->brg_clk;
  395. #endif
  396. printf ("BRG%d:", n);
  397. if (val & CPM_BRG_RST)
  398. puts (" RESET");
  399. else
  400. puts (" ");
  401. if (val & CPM_BRG_EN)
  402. puts (" ENABLED");
  403. else
  404. puts (" DISABLED");
  405. printf (" EXTC=%d", extc);
  406. if (val & CPM_BRG_ATB)
  407. puts (" ATB");
  408. else
  409. puts (" ");
  410. printf (" DIVIDER=%4d", cd);
  411. if (extc == 0 && cd != 0) {
  412. uint baudrate;
  413. if (div16)
  414. baudrate = (clock / 16) / (cd + 1);
  415. else
  416. baudrate = clock / (cd + 1);
  417. printf ("=%6d bps", baudrate);
  418. } else {
  419. puts (" ");
  420. }
  421. if (val & CPM_BRG_DIV16)
  422. puts (" DIV16");
  423. else
  424. puts (" ");
  425. putc ('\n');
  426. }
  427. int
  428. do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  429. {
  430. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  431. #if defined(CONFIG_8xx)
  432. volatile cpm8xx_t *cp = &immap->im_cpm;
  433. volatile uint *p = &cp->cp_brgc1;
  434. #elif defined(CONFIG_8260)
  435. volatile uint *p = &immap->im_brgc1;
  436. #endif
  437. int i = 1;
  438. while (i <= 4)
  439. prbrg (i++, *p++);
  440. #if defined(CONFIG_8260)
  441. p = &immap->im_brgc5;
  442. while (i <= 8)
  443. prbrg (i++, *p++);
  444. #endif
  445. return 0;
  446. }
  447. int
  448. do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  449. {
  450. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  451. #if defined(CONFIG_8xx)
  452. volatile i2c8xx_t *i2c = &immap->im_i2c;
  453. volatile cpm8xx_t *cp = &immap->im_cpm;
  454. volatile iic_t *iip = (iic_t *) & cp->cp_dparam[PROFF_IIC];
  455. #elif defined(CONFIG_8260)
  456. volatile i2c8260_t *i2c = &immap->im_i2c;
  457. volatile iic_t *iip;
  458. uint dpaddr;
  459. dpaddr = *((unsigned short *) (&immap->im_dprambase[PROFF_I2C_BASE]));
  460. if (dpaddr == 0)
  461. iip = NULL;
  462. else
  463. iip = (iic_t *) & immap->im_dprambase[dpaddr];
  464. #endif
  465. printf ("I2MOD = %02x I2ADD = %02x\n", i2c->i2c_i2mod, i2c->i2c_i2add);
  466. printf ("I2BRG = %02x I2COM = %02x\n", i2c->i2c_i2brg, i2c->i2c_i2com);
  467. printf ("I2CER = %02x I2CMR = %02x\n", i2c->i2c_i2cer, i2c->i2c_i2cmr);
  468. if (iip == NULL)
  469. puts ("i2c parameter ram not allocated\n");
  470. else {
  471. printf ("RBASE = %08x TBASE = %08x\n",
  472. iip->iic_rbase, iip->iic_tbase);
  473. printf ("RFCR = %02x TFCR = %02x\n",
  474. iip->iic_rfcr, iip->iic_tfcr);
  475. printf ("MRBLR = %04x\n", iip->iic_mrblr);
  476. printf ("RSTATE= %08x RDP = %08x\n",
  477. iip->iic_rstate, iip->iic_rdp);
  478. printf ("RBPTR = %04x RBC = %04x\n",
  479. iip->iic_rbptr, iip->iic_rbc);
  480. printf ("RXTMP = %08x\n", iip->iic_rxtmp);
  481. printf ("TSTATE= %08x TDP = %08x\n",
  482. iip->iic_tstate, iip->iic_tdp);
  483. printf ("TBPTR = %04x TBC = %04x\n",
  484. iip->iic_tbptr, iip->iic_tbc);
  485. printf ("TXTMP = %08x\n", iip->iic_txtmp);
  486. }
  487. return 0;
  488. }
  489. int
  490. do_sccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  491. {
  492. unimplemented (cmdtp, flag, argc, argv);
  493. return 0;
  494. }
  495. int
  496. do_smcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  497. {
  498. unimplemented (cmdtp, flag, argc, argv);
  499. return 0;
  500. }
  501. int
  502. do_spiinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  503. {
  504. unimplemented (cmdtp, flag, argc, argv);
  505. return 0;
  506. }
  507. int
  508. do_muxinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  509. {
  510. unimplemented (cmdtp, flag, argc, argv);
  511. return 0;
  512. }
  513. int
  514. do_siinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  515. {
  516. unimplemented (cmdtp, flag, argc, argv);
  517. return 0;
  518. }
  519. int
  520. do_mccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  521. {
  522. unimplemented (cmdtp, flag, argc, argv);
  523. return 0;
  524. }
  525. /***************************************************/
  526. U_BOOT_CMD(
  527. siuinfo, 1, 1, do_siuinfo,
  528. "siuinfo - print System Interface Unit (SIU) registers\n",
  529. NULL
  530. );
  531. U_BOOT_CMD(
  532. memcinfo, 1, 1, do_memcinfo,
  533. "memcinfo- print Memory Controller registers\n",
  534. NULL
  535. );
  536. U_BOOT_CMD(
  537. sitinfo, 1, 1, do_sitinfo,
  538. "sitinfo - print System Integration Timers (SIT) registers\n",
  539. NULL
  540. );
  541. #ifdef CONFIG_8260
  542. U_BOOT_CMD(
  543. icinfo, 1, 1, do_icinfo,
  544. "icinfo - print Interrupt Controller registers\n",
  545. NULL
  546. );
  547. #endif
  548. U_BOOT_CMD(
  549. carinfo, 1, 1, do_carinfo,
  550. "carinfo - print Clocks and Reset registers\n",
  551. NULL
  552. );
  553. U_BOOT_CMD(
  554. iopinfo, 1, 1, do_iopinfo,
  555. "iopinfo - print I/O Port registers\n",
  556. NULL
  557. );
  558. U_BOOT_CMD(
  559. iopset, 5, 0, do_iopset,
  560. "iopset - set I/O Port registers\n",
  561. "PORT PIN CMD VALUE\nPORT: A-D, PIN: 0-31, CMD: [dat|dir|odr|sor], VALUE: 0|1"
  562. );
  563. U_BOOT_CMD(
  564. dmainfo, 1, 1, do_dmainfo,
  565. "dmainfo - print SDMA/IDMA registers\n",
  566. NULL
  567. );
  568. U_BOOT_CMD(
  569. fccinfo, 1, 1, do_fccinfo,
  570. "fccinfo - print FCC registers\n",
  571. NULL
  572. );
  573. U_BOOT_CMD(
  574. brginfo, 1, 1, do_brginfo,
  575. "brginfo - print Baud Rate Generator (BRG) registers\n",
  576. NULL
  577. );
  578. U_BOOT_CMD(
  579. i2cinfo, 1, 1, do_i2cinfo,
  580. "i2cinfo - print I2C registers\n",
  581. NULL
  582. );
  583. U_BOOT_CMD(
  584. sccinfo, 1, 1, do_sccinfo,
  585. "sccinfo - print SCC registers\n",
  586. NULL
  587. );
  588. U_BOOT_CMD(
  589. smcinfo, 1, 1, do_smcinfo,
  590. "smcinfo - print SMC registers\n",
  591. NULL
  592. );
  593. U_BOOT_CMD(
  594. spiinfo, 1, 1, do_spiinfo,
  595. "spiinfo - print Serial Peripheral Interface (SPI) registers\n",
  596. NULL
  597. );
  598. U_BOOT_CMD(
  599. muxinfo, 1, 1, do_muxinfo,
  600. "muxinfo - print CPM Multiplexing registers\n",
  601. NULL
  602. );
  603. U_BOOT_CMD(
  604. siinfo, 1, 1, do_siinfo,
  605. "siinfo - print Serial Interface (SI) registers\n",
  606. NULL
  607. );
  608. U_BOOT_CMD(
  609. mccinfo, 1, 1, do_mccinfo,
  610. "mccinfo - print MCC registers\n",
  611. NULL
  612. );
  613. #endif /* CFG_CMD_IMMAP && (CONFIG_8xx || CONFIG_8260) */