]> git.ipfire.org Git - people/ms/u-boot.git/blame - cmd/reginfo.c
dtoc: Add a comment at the top
[people/ms/u-boot.git] / cmd / reginfo.c
CommitLineData
e887afc9
WD
1/*
2 * (C) Copyright 2000
3 * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
e887afc9
WD
6 */
7
8#include <common.h>
9#include <command.h>
907208c4 10#if defined(CONFIG_8xx)
d7949665 11void mpc8xx_reginfo(void);
907208c4 12#elif defined(CONFIG_MPC86xx)
4f93f8b1 13extern void mpc86xx_reginfo(void);
199e262e
BB
14#elif defined(CONFIG_MPC85xx)
15extern void mpc85xx_reginfo(void);
e887afc9 16#endif
65c450b4 17
088f1b19
KP
18static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc,
19 char * const argv[])
e887afc9 20{
907208c4 21#if defined(CONFIG_8xx)
d7949665 22 mpc8xx_reginfo();
907208c4
CL
23
24#elif defined(CONFIG_MPC86xx)
4f93f8b1 25 mpc86xx_reginfo();
97c26e00 26
199e262e
BB
27#elif defined(CONFIG_MPC85xx)
28 mpc85xx_reginfo();
a2979dcd 29#endif
4f93f8b1 30
e887afc9
WD
31 return 0;
32}
33
8bde7f77
WD
34 /**************************************************/
35
97c26e00 36#if defined(CONFIG_CMD_REGINFO)
0d498393 37U_BOOT_CMD(
53677ef1 38 reginfo, 2, 1, do_reginfo,
2fb2604d 39 "print register information",
a89c33db 40 ""
8bde7f77
WD
41);
42#endif