sys_info.c 482 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * (C) Copyright 2010,2011
  3. * NVIDIA Corporation <www.nvidia.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <linux/ctype.h>
  9. static void upstring(char *s)
  10. {
  11. while (*s) {
  12. *s = toupper(*s);
  13. s++;
  14. }
  15. }
  16. /* Print CPU information */
  17. int print_cpuinfo(void)
  18. {
  19. char soc_name[10];
  20. strncpy(soc_name, CONFIG_SYS_SOC, 10);
  21. upstring(soc_name);
  22. puts(soc_name);
  23. puts("\n");
  24. /* TBD: Add printf of major/minor rev info, stepping, etc. */
  25. return 0;
  26. }