]>
Commit | Line | Data |
---|---|---|
e887afc9 WD |
1 | /* |
2 | * (C) Copyright 2000 | |
3 | * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
e887afc9 WD |
6 | */ |
7 | ||
8 | #include <common.h> | |
9 | #include <command.h> | |
98f705c9 | 10 | #if defined(CONFIG_MPC86xx) |
4f93f8b1 | 11 | extern void mpc86xx_reginfo(void); |
199e262e BB |
12 | #elif defined(CONFIG_MPC85xx) |
13 | extern void mpc85xx_reginfo(void); | |
e887afc9 | 14 | #endif |
65c450b4 | 15 | |
088f1b19 KP |
16 | static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc, |
17 | char * const argv[]) | |
e887afc9 | 18 | { |
98f705c9 | 19 | #if defined(CONFIG_MPC86xx) |
4f93f8b1 | 20 | mpc86xx_reginfo(); |
97c26e00 | 21 | |
199e262e BB |
22 | #elif defined(CONFIG_MPC85xx) |
23 | mpc85xx_reginfo(); | |
a2979dcd | 24 | #endif |
4f93f8b1 | 25 | |
e887afc9 WD |
26 | return 0; |
27 | } | |
28 | ||
8bde7f77 WD |
29 | /**************************************************/ |
30 | ||
97c26e00 | 31 | #if defined(CONFIG_CMD_REGINFO) |
0d498393 | 32 | U_BOOT_CMD( |
53677ef1 | 33 | reginfo, 2, 1, do_reginfo, |
2fb2604d | 34 | "print register information", |
a89c33db | 35 | "" |
8bde7f77 WD |
36 | ); |
37 | #endif |