reginfo.c 793 B

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