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