Up until now, the R5 SPL in J722S platform was configured to start out
of the SMS0_HSM_SRAM0_0 (0x0043C00000, 512KB) memory region. However,
with the requirement of loading HSM M4F core with its own secure
firmware, R5 SPL can no longer utilize that memory to execute itself.

Therefore, utilize the MSRAM8KX256E0_RAM (0x0043C40000, 256KB) memory
region for loading and executing R5 SPL. Naturally, the SPL size has now
to be trimmed to be fit inside the smaller 256KB region.

As an example, create a new defconfig (j722s_evm_r5_hsmboot_defconfig)
which removes the SPI related configs to trim down the SPL size to
~175KB. The above defconfig demonstrates loading HSM core with SD, eMMC
and UART bootmodes.

Signed-off-by: Beleswar Padhi <[email protected]>
---
v3: Changelog:
1. New patch. Show an example of booting HSM core on J722S SoC.

 configs/j722s_evm_r5_hsmboot_defconfig | 41 ++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 configs/j722s_evm_r5_hsmboot_defconfig

diff --git a/configs/j722s_evm_r5_hsmboot_defconfig 
b/configs/j722s_evm_r5_hsmboot_defconfig
new file mode 100644
index 00000000000..517cfd40018
--- /dev/null
+++ b/configs/j722s_evm_r5_hsmboot_defconfig
@@ -0,0 +1,41 @@
+#include<configs/j722s_evm_r5_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_J722S=y
+CONFIG_TARGET_J722S_R5_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-j722s-r5-evm"
+# Enable HSM loading
+CONFIG_REMOTEPROC_TI_K3_HSM_M4F=y
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x43C78800
+CONFIG_SPL_TEXT_BASE=0x43c40000
+CONFIG_SPL_BSS_START_ADDR=0x43c7c290
+# Remove SPI configs to reduce SPL size
+CONFIG_SPL_GPIO=n
+CONFIG_DM_GPIO=n
+CONFIG_SPL_SPI_FLASH_SUPPORT=n
+CONFIG_SPL_SPI=n
+CONFIG_OF_BOARD_SETUP=n
+CONFIG_SPL_MTD=n
+CONFIG_SPL_MTD_LOAD=n
+CONFIG_SPL_NAND_SPI_SUPPORT=n
+CONFIG_SPL_SPI_FLASH_SFDP_SUPPORT=n
+CONFIG_SPL_SPI_LOAD=n
+CONFIG_DA8XX_GPIO=n
+CONFIG_DM_PCA953X=n
+CONFIG_SPL_DM_PCA953X=n
+CONFIG_MTD=n
+CONFIG_DM_MTD=n
+CONFIG_MTD_SPI_NAND=n
+CONFIG_DM_SPI_FLASH=n
+CONFIG_SPI_FLASH_SFDP_SUPPORT=n
+CONFIG_SPI_FLASH_SOFT_RESET=n
+CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=n
+CONFIG_SPI_FLASH_SPANSION=n
+CONFIG_SPI_FLASH_S28HX_T=n
+CONFIG_SPI=n
+CONFIG_DM_SPI=n
+CONFIG_CADENCE_QSPI=n
+CONFIG_CADENCE_QSPI_PHY=n
+CONFIG_SPL_DM_SPI_FLASH=n
+CONFIG_SPL_DM_SPI=n
-- 
2.34.1

Reply via email to