diff mbox

[U-Boot,2/3] colibri_t20: enable early pmic rail configuration

Message ID 1440057163-20081-3-git-send-email-marcel.ziswiler@toradex.com
State Changes Requested
Delegated to: Tom Warren
Headers show

Commit Message

Marcel Ziswiler Aug. 20, 2015, 7:52 a.m. UTC
Enable early TPS6586X PMIC rail configuration setting SM0 being
VDD_CORE_1.2V to 1.2 volts and SM1 being VDD_CPU_1.0V to 1.0 volts.

While those are PMIC power-up defaults the SoC might have been reset
separately with certain rails being left at lower DVFS states which
is e.g. the case upon watchdog reset while otherwise nearly idling.

This fixes an issue being stuck in U-Boot's SPL upon watchdog reset
(e.g. running downstream L4T Linux kernel as there exists no mainline
Tegra20 watchdog driver as of yet).

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---

 include/configs/colibri_t20.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stephen Warren Aug. 20, 2015, 8:02 p.m. UTC | #1
On 08/20/2015 01:52 AM, Marcel Ziswiler wrote:
> Enable early TPS6586X PMIC rail configuration setting SM0 being
> VDD_CORE_1.2V to 1.2 volts and SM1 being VDD_CPU_1.0V to 1.0 volts.
>
> While those are PMIC power-up defaults the SoC might have been reset
> separately with certain rails being left at lower DVFS states which
> is e.g. the case upon watchdog reset while otherwise nearly idling.
>
> This fixes an issue being stuck in U-Boot's SPL upon watchdog reset
> (e.g. running downstream L4T Linux kernel as there exists no mainline
> Tegra20 watchdog driver as of yet).

Rather than enable this with yet another CONFIG_ option, perhaps we can 
put this code into a C file dedicated to the colibri_t20 board, and then 
have the common code call it (and implement a weak function that does 
nothing to satisfy the linker on other boards).
diff mbox

Patch

diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index 7611fc5..124d767 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -13,6 +13,8 @@ 
 
 #define CONFIG_ARCH_MISC_INIT
 
+#define CONFIG_TEGRA_EARLY_TPS6586X
+
 /* High-level configuration options */
 #define CONFIG_TEGRA_BOARD_STRING	"Toradex Colibri T20"