]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: bcm283x undefined reference to "print_cpuinfo"
authorNaveen Kumar Chaudhary <naveenchaudhary2010@hotmail.com>
Thu, 3 Aug 2023 13:39:35 +0000 (19:09 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 17 Aug 2023 20:39:20 +0000 (16:39 -0400)
Builds for Raspberry Pi targets fail when CONFIG_DISPLAY_CPUINFO is
enabled and following error can be seen -
common/board_f.o:(.rodata.init_sequence_f+0x90):
    undefined reference to `print_cpuinfo'

Added implementation of function "print_cpuinfo"

Signed-off-by: Naveen Kumar Chaudhary <naveenchaudhary2010@hotmail.com>
arch/arm/mach-bcm283x/init.c

index 183650a90a8b46307da0d9157024174efce0f808..7265faf6cecc614a6507690f70779278b4d32602 100644 (file)
@@ -146,6 +146,14 @@ int mach_cpu_init(void)
        return 0;
 }
 
+#if defined(CONFIG_DISPLAY_CPUINFO)
+int print_cpuinfo(void)
+{
+       printf("CPU: BCM283x\n");
+       return 0;
+}
+#endif
+
 #ifdef CONFIG_ARMV7_LPAE
 #ifdef CONFIG_TARGET_RPI_4_32B
 #define BCM2711_RPI4_PCIE_XHCI_MMIO_VIRT       0xffc00000UL