soc: ti: k3: am6x: Fix AM62X M4 RAT initialisation

Commit b73c5578e3 ("soc: ti: move init code from SYS_INIT to hooks")
changed SYS_INIT to init hooks. For AM6x M4 target soc_prep_hook()
was added by mistake instead of soc_early_init_hook(), the platform needs
RAT translation initialized before any other operation and the platform
failed to boot with this change, fix this by replacing with
soc_early_init_hook()

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
This commit is contained in:
Vaishnav Achath 2024-10-04 02:30:11 +05:30 committed by Anas Nashif
commit 1b8158b212
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ config SOC_SERIES_AM6X_M4
select EXTERNAL_ADDRESS_TRANSLATION select EXTERNAL_ADDRESS_TRANSLATION
select MM_DRV select MM_DRV
select MM_TI_RAT select MM_TI_RAT
select SOC_PREP_HOOK select SOC_EARLY_INIT_HOOK
config SOC_PART_NUMBER config SOC_PART_NUMBER
default "AM6234" if SOC_AM6234_A53 default "AM6234" if SOC_AM6234_A53

View file

@ -62,7 +62,7 @@ static void am6x_mmr_unlock(void)
sys_write32(KICK1_UNLOCK_VAL, kickAddr); /* KICK 1 */ sys_write32(KICK1_UNLOCK_VAL, kickAddr); /* KICK 1 */
} }
void soc_prep_hook(void) void soc_early_init_hook(void)
{ {
sys_mm_drv_ti_rat_init(am6x_region_config, ADDR_TRANSLATE_RAT_BASE_ADDR, sys_mm_drv_ti_rat_init(am6x_region_config, ADDR_TRANSLATE_RAT_BASE_ADDR,
ARRAY_SIZE(am6x_region_config)); ARRAY_SIZE(am6x_region_config));