]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: am642_init: Add missing ddr guard
authorGowtham Tammana <g-tammana@ti.com>
Thu, 24 Jun 2021 17:16:14 +0000 (12:16 -0500)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 15 Jul 2021 12:26:04 +0000 (17:56 +0530)
The `struct udevice *` reference is needed for either of the
K3_LOAD_SYSFW, K3_AM64_DDRSS config guards. Adding the missing
K3_AM64_DDRSS guard.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210624171614.14244-1-g-tammana@ti.com
arch/arm/mach-k3/am642_init.c

index 579dbacb7e4844f677bb771ef60f9673332e13b4..0e46d70e8425b5ff4880d5478bebdee9378ffd11 100644 (file)
@@ -141,7 +141,7 @@ int fdtdec_board_setup(const void *fdt_blob)
 
 void board_init_f(ulong dummy)
 {
-#if defined(CONFIG_K3_LOAD_SYSFW)
+#if defined(CONFIG_K3_LOAD_SYSFW) || defined(CONFIG_K3_AM64_DDRSS)
        struct udevice *dev;
        int ret;
 #endif