wdenk | e887afc | 2002-08-27 09:44:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | e887afc | 2002-08-27 09:44:07 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <command.h> |
Heiko Schocher | 2028012 | 2017-06-27 16:49:14 +0200 | [diff] [blame] | 10 | #if defined(CONFIG_MPC86xx) |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 11 | extern void mpc86xx_reginfo(void); |
Becky Bruce | ee888da | 2010-06-17 11:37:25 -0500 | [diff] [blame] | 12 | #elif defined(CONFIG_MPC85xx) |
| 13 | extern void mpc85xx_reginfo(void); |
wdenk | e887afc | 2002-08-27 09:44:07 +0000 | [diff] [blame] | 14 | #endif |
Jon Loeliger | 3de8b24 | 2007-06-11 19:01:54 -0500 | [diff] [blame] | 15 | |
Kim Phillips | dc00a68 | 2012-10-29 13:34:31 +0000 | [diff] [blame] | 16 | static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc, |
| 17 | char * const argv[]) |
wdenk | e887afc | 2002-08-27 09:44:07 +0000 | [diff] [blame] | 18 | { |
Heiko Schocher | 2028012 | 2017-06-27 16:49:14 +0200 | [diff] [blame] | 19 | #if defined(CONFIG_MPC86xx) |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 20 | mpc86xx_reginfo(); |
Mike Frysinger | 030f345 | 2008-02-04 19:26:56 -0500 | [diff] [blame] | 21 | |
Becky Bruce | ee888da | 2010-06-17 11:37:25 -0500 | [diff] [blame] | 22 | #elif defined(CONFIG_MPC85xx) |
| 23 | mpc85xx_reginfo(); |
Sonic Zhang | a99f03e | 2012-08-16 11:56:14 +0800 | [diff] [blame] | 24 | #endif |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 25 | |
wdenk | e887afc | 2002-08-27 09:44:07 +0000 | [diff] [blame] | 26 | return 0; |
| 27 | } |
| 28 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 29 | /**************************************************/ |
| 30 | |
Mike Frysinger | 030f345 | 2008-02-04 19:26:56 -0500 | [diff] [blame] | 31 | #if defined(CONFIG_CMD_REGINFO) |
wdenk | f287a24 | 2003-07-01 21:06:45 +0000 | [diff] [blame] | 32 | U_BOOT_CMD( |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 33 | reginfo, 2, 1, do_reginfo, |
Peter Tyser | dfb72b8 | 2009-01-27 18:03:12 -0600 | [diff] [blame] | 34 | "print register information", |
Wolfgang Denk | c54781c | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 35 | "" |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 36 | ); |
| 37 | #endif |