Patchwork [U-Boot,4/4] ARM: OMAP4460: sdp: Limit TPS mux config to 4460

login
register
mail settings
Submitter Taras Kondratiuk
Date Aug. 6, 2013, 12:18 p.m.
Message ID <1375791531-31014-5-git-send-email-taras@ti.com>
Download mbox | patch
Permalink /patch/265046/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Taras Kondratiuk - Aug. 6, 2013, 12:18 p.m.
TPS mux config is 4460 specific, so it should be limited to 4460 only.

Signed-off-by: Taras Kondratiuk <taras@ti.com>
---
 board/ti/sdp4430/sdp.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c
index 25daaa9..0479a56 100644
--- a/board/ti/sdp4430/sdp.c
+++ b/board/ti/sdp4430/sdp.c
@@ -66,7 +66,8 @@  void set_muxconf_regs_essential(void)
 		   sizeof(wkup_padconf_array_essential) /
 		   sizeof(struct pad_conf_entry));
 
-	if (omap_revision() >= OMAP4460_ES1_0)
+	if ((omap_revision() >= OMAP4460_ES1_0) &&
+			(omap_revision() < OMAP4470_ES1_0))
 		do_set_mux((*ctrl)->control_padconf_wkup_base,
 				 wkup_padconf_array_essential_4460,
 				 sizeof(wkup_padconf_array_essential_4460) /