Skip to contentSkip to conversation

OMAP5432: do not apply 5430 non-essential pad-confs to 5432

PATCH New Sebastien Jan 3 participants 3 messages Jun 4, 2012 – Jun 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP5432: do not apply 5430 non-essential pad-confs to 5432

Some of the non-essential 5432 pads have a different purpose compared to 5430, so do not apply the 5430 non-essential pads configuration to 5432. Essential pad confs are common and can/shall be shared.

---
 board/ti/omap5_evm/evm.c |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
board/ti/omap5_evm/evm.c +12 -6
index c8dfdf8..e488fa5 100644
@@ -82,13 +82,19 @@ void set_muxconf_regs_essential(void)
 
 void set_muxconf_regs_non_essential(void)
 {
-	do_set_mux(CONTROL_PADCONF_CORE, core_padconf_array_non_essential,
-		   sizeof(core_padconf_array_non_essential) /
-		   sizeof(struct pad_conf_entry));
+	u32 omap_rev = omap_revision();
 
-	do_set_mux(CONTROL_PADCONF_WKUP, wkup_padconf_array_non_essential,
-		   sizeof(wkup_padconf_array_non_essential) /
-		   sizeof(struct pad_conf_entry));
+	if (omap_rev == OMAP5430_ES1_0) {
+		do_set_mux(CONTROL_PADCONF_CORE,
+			   core_padconf_array_non_essential,
+			   sizeof(core_padconf_array_non_essential) /
+			   sizeof(struct pad_conf_entry));
+
+		do_set_mux(CONTROL_PADCONF_WKUP,
+			   wkup_padconf_array_non_essential,
+			   sizeof(wkup_padconf_array_non_essential) /
+			   sizeof(struct pad_conf_entry));
+	}
 }
 
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_GENERIC_MMC)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 OMAP5432: do not apply 5430 non-essential pad-confs to 5432

Quoted 5 lines · Sebastien Jan

Some of the non-essential 5432 pads have a different purpose compared to 5430, so do not apply the 5430 non-essential pads configuration to 5432. Essential pad confs are common and can/shall be shared.

One of the things that's been discussed before is that enabling "non-essential" things can lead to PM problems later in the kernel, so should we be enabling anything U-Boot doesn't really need, ever, in these cases?

Signature · 1 line
Tom
#2 lore raw

PATCH 1/1 OMAP5432: do not apply 5430 non-essential pad-confs to 5432

Hi,

Quoted 7 lines
Quoted 1 line

One of the things that's been discussed before is that enabling "non-essential" things can lead to PM problems later in the kernel, so should we be enabling anything U-Boot doesn't really need, ever, in these cases?

Yes, in fact non- essential muxes/clocks/dplls should never be enabled in the bootloader. But today the kernel up to OMAP5430 based boards are
dependent
upon these settings. But atleast for 5432 by removing this, we can force things to be fixed in the kernel. Also we should remove these non
essential
stuff for all. I will send a patch to remove this for OMAP4/5 as well.

Thanks,
Sricharan