diff mbox series

[PATCHv6,02/26] arm: mach-k3: introduce new config option for sysfw split

Message ID 20210611084527.7048-3-kristo@kernel.org
State Accepted
Commit 99214c1f4825a3d2b88ebde1ad48b315c04f16fa
Delegated to: Lokesh Vutla
Headers show
Series HSM rearch series for TI K3 devices | expand

Commit Message

Tero Kristo June 11, 2021, 8:45 a.m. UTC
From: Tero Kristo <t-kristo@ti.com>

On J7 family of SoCs (J721E and J7200), sysfw is being split to be run
under two cores, TIFS portion on DMSC core, and DM firmware under MCU
R5. As MCU R5 is also used to run one phase of the bootloader, we must
prevent access from here towards sysfw services. To support this, add
new config option which can be used to detect presence of RM/PM sysfw
services.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
---
 arch/arm/mach-k3/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig
index 21b2fc2230..fa8d134b42 100644
--- a/arch/arm/mach-k3/Kconfig
+++ b/arch/arm/mach-k3/Kconfig
@@ -154,6 +154,17 @@  config K3_ATF_LOAD_ADDR
 	  The load address for the ATF image. This value defaults to 0x70000000
 	  if not provided in the board defconfig file.
 
+config K3_DM_FW
+	bool "Separate DM firmware image"
+	depends on SPL && CPU_V7R && SOC_K3_J721E && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
+	default y
+	help
+	  Enabling this will indicate that the system has separate DM
+	  and TIFS firmware images in place, instead of a single SYSFW
+	  firmware. Due to DM being executed on the same core as R5 SPL
+	  bootloader, it makes RM and PM services not being available
+	  during R5 SPL execution time.
+
 source "board/ti/am65x/Kconfig"
 source "board/ti/am64x/Kconfig"
 source "board/ti/j721e/Kconfig"