cmd_immap.c 15 KB

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