blob: 8e4bec8c4be5423e29edfac4211e22d5e03a87ff [file] [log] [blame]
wdenke887afc2002-08-27 09:44:07 +00001/*
2 * (C) Copyright 2000
3 * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenke887afc2002-08-27 09:44:07 +00006 */
7
8#include <common.h>
9#include <command.h>
Heiko Schocher20280122017-06-27 16:49:14 +020010#if defined(CONFIG_MPC86xx)
Becky Bruceb0b30942008-01-23 16:31:06 -060011extern void mpc86xx_reginfo(void);
Becky Bruceee888da2010-06-17 11:37:25 -050012#elif defined(CONFIG_MPC85xx)
13extern void mpc85xx_reginfo(void);
wdenke887afc2002-08-27 09:44:07 +000014#endif
Jon Loeliger3de8b242007-06-11 19:01:54 -050015
Kim Phillipsdc00a682012-10-29 13:34:31 +000016static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc,
17 char * const argv[])
wdenke887afc2002-08-27 09:44:07 +000018{
Heiko Schocher20280122017-06-27 16:49:14 +020019#if defined(CONFIG_MPC86xx)
Becky Bruceb0b30942008-01-23 16:31:06 -060020 mpc86xx_reginfo();
Mike Frysinger030f3452008-02-04 19:26:56 -050021
Becky Bruceee888da2010-06-17 11:37:25 -050022#elif defined(CONFIG_MPC85xx)
23 mpc85xx_reginfo();
Sonic Zhanga99f03e2012-08-16 11:56:14 +080024#endif
Becky Bruceb0b30942008-01-23 16:31:06 -060025
wdenke887afc2002-08-27 09:44:07 +000026 return 0;
27}
28
wdenk57b2d802003-06-27 21:31:46 +000029 /**************************************************/
30
Mike Frysinger030f3452008-02-04 19:26:56 -050031#if defined(CONFIG_CMD_REGINFO)
wdenkf287a242003-07-01 21:06:45 +000032U_BOOT_CMD(
Wolfgang Denka1be4762008-05-20 16:00:29 +020033 reginfo, 2, 1, do_reginfo,
Peter Tyserdfb72b82009-01-27 18:03:12 -060034 "print register information",
Wolfgang Denkc54781c2009-05-24 17:06:54 +020035 ""
wdenk57b2d802003-06-27 21:31:46 +000036);
37#endif