]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xilinx: cpuinfo: Print soc machine
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Mon, 20 Jun 2022 16:36:44 +0000 (18:36 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:37:27 +0000 (14:37 +0200)
Print the soc machine in the print_cpuinfo function.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Link: https://lore.kernel.org/r/20220620163650.18756-9-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/common/board.c

index 629a6ee036ffd036c6fb77846e32ddfa637063e7..402fa770063fea55d9c49e4129344d922105d5f3 100644 (file)
@@ -506,6 +506,10 @@ int print_cpuinfo(void)
        if (ret)
                printf("Silicon: %s\n", name);
 
+       ret = soc_get_machine(soc, name, SOC_MAX_STR_SIZE);
+       if (ret)
+               printf("Chip:  %s\n", name);
+
        return 0;
 }
 #endif