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