summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSinthu Raja <sinthu.raja@ti.com>2023-01-11 14:12:34 +0530
committerAnand Gadiyar <gadiyar@ti.com>2023-01-17 06:21:23 -0600
commit6e4161bd8d14a37045a38543d93e1ebfc8ce9c5a (patch)
tree377fa2fd044cbc811305afd259b808a4b901229f /arch
parent77e4115c5e9a29ced46f6cef01e524f7162570e5 (diff)
arch: mach-k3: Update board specific API name to K3 generic API name
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-k3/include/mach/sys_proto.h3
-rw-r--r--arch/arm/mach-k3/j721s2_init.c13
2 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/include/mach/sys_proto.h b/arch/arm/mach-k3/include/mach/sys_proto.h
index db5654dd7b..286e592364 100644
--- a/arch/arm/mach-k3/include/mach/sys_proto.h
+++ b/arch/arm/mach-k3/include/mach/sys_proto.h
@@ -30,4 +30,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
diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c
index 6140c16fcd..43f7163117 100644
--- a/arch/arm/mach-k3/j721s2_init.c
+++ b/arch/arm/mach-k3/j721s2_init.c
@@ -140,7 +140,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;
@@ -209,6 +209,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_K3_J721S2_DDRSS)) {
ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev);