]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arch: mach-k3: Update board specific API name to K3 generic API name
authorSinthu Raja <sinthu.raja@ti.com>
Tue, 10 Jan 2023 15:47:53 +0000 (21:17 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 17:51:27 +0000 (12:51 -0500)
Although the board_init_f API initialises the SoC, the API name is
incorrectly specified and misleads the functionality. This file should
only include k3-specific functionality. Change the API's name to something
more K3-specific and separate the function to make it more modular.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-k3/include/mach/sys_proto.h
arch/arm/mach-k3/j721s2_init.c

index 60287b261c8e8e25a35d64eafc039db32e391684..3d3d90d02d6548a644f66c1cded0fe84befc89f3 100644 (file)
@@ -19,4 +19,7 @@ int fdt_disable_node(void *blob, char *node_path);
 bool soc_is_j721e(void);
 bool soc_is_j7200(void);
 
+void k3_spl_init(void);
+void k3_mem_init(void);
+bool check_rom_loaded_sysfw(void);
 #endif
index 0206b01d9e379f73928a33ad9a12074b63ef2efd..09e55ed45667c3a9c99da856bd22a54afc0e040c 100644 (file)
@@ -93,7 +93,7 @@ static void store_boot_info_from_rom(void)
               sizeof(struct rom_extended_boot_data));
 }
 
-void board_init_f(ulong dummy)
+void k3_spl_init(void)
 {
        struct udevice *dev;
        int ret;
@@ -154,6 +154,17 @@ void board_init_f(ulong dummy)
 
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
+}
+
+bool check_rom_loaded_sysfw(void)
+{
+       return is_rom_loaded_sysfw(&bootdata);
+}
+
+void k3_mem_init(void)
+{
+       struct udevice *dev;
+       int ret;
 
        if (IS_ENABLED(CONFIG_TARGET_J721S2_R5_EVM)) {
                ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev);