1 /* 2 * (C) Copyright 2000 3 * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8 #include <common.h> 9 #include <command.h> 10 #if defined(CONFIG_8xx) 11 void mpc8xx_reginfo(void); 12 #elif defined(CONFIG_MPC86xx) 13 extern void mpc86xx_reginfo(void); 14 #elif defined(CONFIG_MPC85xx) 15 extern void mpc85xx_reginfo(void); 16 #endif 17 18 static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc, 19 char * const argv[]) 20 { 21 #if defined(CONFIG_8xx) 22 mpc8xx_reginfo(); 23 24 #elif defined(CONFIG_MPC86xx) 25 mpc86xx_reginfo(); 26 27 #elif defined(CONFIG_MPC85xx) 28 mpc85xx_reginfo(); 29 #endif 30 31 return 0; 32 } 33 34 /**************************************************/ 35 36 #if defined(CONFIG_CMD_REGINFO) 37 U_BOOT_CMD( 38 reginfo, 2, 1, do_reginfo, 39 "print register information", 40 "" 41 ); 42 #endif 43