sys_info.c 479 B

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