2002-08-27 09:44:07 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000
|
|
|
|
* Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
|
|
|
|
*
|
2013-07-08 09:37:19 +02:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2002-08-27 09:44:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <command.h>
|
2017-06-07 17:33:09 +02:00
|
|
|
#if defined (CONFIG_4xx)
|
2009-10-04 20:04:21 +02:00
|
|
|
extern void ppc4xx_reginfo(void);
|
2008-01-23 16:31:06 -06:00
|
|
|
#elif defined (CONFIG_MPC86xx)
|
|
|
|
extern void mpc86xx_reginfo(void);
|
2010-06-17 11:37:25 -05:00
|
|
|
#elif defined(CONFIG_MPC85xx)
|
|
|
|
extern void mpc85xx_reginfo(void);
|
2002-08-27 09:44:07 +00:00
|
|
|
#endif
|
2007-06-11 19:01:54 -05:00
|
|
|
|
2012-10-29 13:34:31 +00:00
|
|
|
static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc,
|
|
|
|
char * const argv[])
|
2002-08-27 09:44:07 +00:00
|
|
|
{
|
2017-06-07 17:33:09 +02:00
|
|
|
#if defined (CONFIG_4xx)
|
2009-10-04 20:04:21 +02:00
|
|
|
ppc4xx_reginfo();
|
2008-01-23 16:31:06 -06:00
|
|
|
#elif defined(CONFIG_MPC86xx)
|
|
|
|
mpc86xx_reginfo();
|
2008-02-04 19:26:56 -05:00
|
|
|
|
2010-06-17 11:37:25 -05:00
|
|
|
#elif defined(CONFIG_MPC85xx)
|
|
|
|
mpc85xx_reginfo();
|
2012-08-16 11:56:14 +08:00
|
|
|
#endif
|
2008-01-23 16:31:06 -06:00
|
|
|
|
2002-08-27 09:44:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
/**************************************************/
|
|
|
|
|
2008-02-04 19:26:56 -05:00
|
|
|
#if defined(CONFIG_CMD_REGINFO)
|
2003-07-01 21:06:45 +00:00
|
|
|
U_BOOT_CMD(
|
2008-05-20 16:00:29 +02:00
|
|
|
reginfo, 2, 1, do_reginfo,
|
2009-01-27 18:03:12 -06:00
|
|
|
"print register information",
|
2009-05-24 17:06:54 +02:00
|
|
|
""
|
2003-06-27 21:31:46 +00:00
|
|
|
);
|
|
|
|
#endif
|