2002-08-27 09:44:07 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000
|
|
|
|
* Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2002-08-27 09:44:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <command.h>
|
2017-06-27 14:49:14 +00:00
|
|
|
#if defined(CONFIG_MPC86xx)
|
2008-01-23 22:31:06 +00:00
|
|
|
extern void mpc86xx_reginfo(void);
|
2010-06-17 16:37:25 +00:00
|
|
|
#elif defined(CONFIG_MPC85xx)
|
|
|
|
extern void mpc85xx_reginfo(void);
|
2002-08-27 09:44:07 +00:00
|
|
|
#endif
|
2007-06-12 00:01:54 +00: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-27 14:49:14 +00:00
|
|
|
#if defined(CONFIG_MPC86xx)
|
2008-01-23 22:31:06 +00:00
|
|
|
mpc86xx_reginfo();
|
2008-02-05 00:26:56 +00:00
|
|
|
|
2010-06-17 16:37:25 +00:00
|
|
|
#elif defined(CONFIG_MPC85xx)
|
|
|
|
mpc85xx_reginfo();
|
2012-08-16 03:56:14 +00:00
|
|
|
#endif
|
2008-01-23 22:31:06 +00:00
|
|
|
|
2002-08-27 09:44:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
/**************************************************/
|
|
|
|
|
2008-02-05 00:26:56 +00:00
|
|
|
#if defined(CONFIG_CMD_REGINFO)
|
2003-07-01 21:06:45 +00:00
|
|
|
U_BOOT_CMD(
|
2008-05-20 14:00:29 +00:00
|
|
|
reginfo, 2, 1, do_reginfo,
|
2009-01-28 00:03:12 +00:00
|
|
|
"print register information",
|
2009-05-24 15:06:54 +00:00
|
|
|
""
|
2003-06-27 21:31:46 +00:00
|
|
|
);
|
|
|
|
#endif
|