diff mbox series

[v4,5/5] configs: j7200_evm_r5_defconfig: Define K3_OPP_LOW

Message ID 20241119003617.1871183-6-a-limaye@ti.com
State Accepted
Commit abb2544d890a5d23a8ecc40a902fbf0918eda53a
Delegated to: Tom Rini
Headers show
Series Add OPP_LOW support for J7200 | expand

Commit Message

Aniket Limaye Nov. 19, 2024, 12:32 a.m. UTC
From: Reid Tonking <reidt@ti.com>

Define new CONFIG_K3_OPP_LOW under arm/mach-k3/r5/Kconfig and add
default value to j7200_evm_r5_defconfig

Signed-off-by: Reid Tonking <reidt@ti.com>
Signed-off-by: Aniket Limaye <a-limaye@ti.com>
---

v4:
- Move Config definition to arch/arm/mach-k3/r5/Kconfig
- Link to v3: https://lore.kernel.org/u-boot/20241116071615.839623-6-a-limaye@ti.com/

v3:
- Add Kconfig dependency on K3_AVS0
- Update commit msg to make it more clear
- Link to v2: https://lore.kernel.org/u-boot/20241023130033.1826413-6-a-limaye@ti.com/
---
 arch/arm/mach-k3/r5/Kconfig    | 7 +++++++
 configs/j7200_evm_r5_defconfig | 1 +
 2 files changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-k3/r5/Kconfig b/arch/arm/mach-k3/r5/Kconfig
index 878087fbf56..12335880e10 100644
--- a/arch/arm/mach-k3/r5/Kconfig
+++ b/arch/arm/mach-k3/r5/Kconfig
@@ -1,6 +1,13 @@ 
 config K3_LOAD_SYSFW
 	bool
 
+config K3_OPP_LOW
+	depends on ARCH_K3 && K3_AVS0
+	bool "Enable OPP_LOW on supported TI K3 SoCs"
+	help
+	  Enabling this will allow Socs with the proper efuse to run at a lower
+	  MPU core voltage and adjust frequency according to SoC TRM
+
 config K3_QOS
 	bool "Enable Quality of Service (QoS) Settings for TI K3 SoCs"
 	default y if SOC_K3_AM62A7
diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig
index f036a6fd46b..217759e5d1b 100644
--- a/configs/j7200_evm_r5_defconfig
+++ b/configs/j7200_evm_r5_defconfig
@@ -102,6 +102,7 @@  CONFIG_K3_SEC_PROXY=y
 CONFIG_FS_LOADER=y
 CONFIG_SPL_FS_LOADER=y
 CONFIG_K3_AVS0=y
+# CONFIG_K3_OPP_LOW is not set
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_SPL_MMC_HS400_SUPPORT=y
 CONFIG_MMC_SDHCI=y