summaryrefslogtreecommitdiff
path: root/board/ti/panda/panda.c
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@linaro.org>2011-09-21 10:17:31 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-10-27 21:56:34 +0200
commit53430a4f251eacc32ada54b56258cc18856d0d8e (patch)
tree64d533453906290ff26d8152a8004d32fc847c3b /board/ti/panda/panda.c
parent8f6a027f627d6002bedc3ab12610535dbf9ef497 (diff)
downloadu-boot-imx-53430a4f251eacc32ada54b56258cc18856d0d8e.zip
u-boot-imx-53430a4f251eacc32ada54b56258cc18856d0d8e.tar.gz
u-boot-imx-53430a4f251eacc32ada54b56258cc18856d0d8e.tar.bz2
omap4: splitting padconfs into common, 4430 and 4460
Not all padconfs are the same between 4430 and 4460, so instead of working around this with an if, we should have an specific padconf structure for both chips (like handling the differences between the LEDs GPIOs and TPS). Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/panda/panda.c')
-rw-r--r--board/ti/panda/panda.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c
index 9afed80..97320cb 100644
--- a/board/ti/panda/panda.c
+++ b/board/ti/panda/panda.c
@@ -71,9 +71,26 @@ void set_muxconf_regs_non_essential(void)
sizeof(core_padconf_array_non_essential) /
sizeof(struct pad_conf_entry));
+ if (omap_revision() < OMAP4460_ES1_0)
+ do_set_mux(CONTROL_PADCONF_CORE,
+ core_padconf_array_non_essential_4430,
+ sizeof(core_padconf_array_non_essential_4430) /
+ sizeof(struct pad_conf_entry));
+ else
+ do_set_mux(CONTROL_PADCONF_CORE,
+ core_padconf_array_non_essential_4460,
+ sizeof(core_padconf_array_non_essential_4460) /
+ 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 (omap_revision() < OMAP4460_ES1_0)
+ do_set_mux(CONTROL_PADCONF_WKUP,
+ wkup_padconf_array_non_essential_4430,
+ sizeof(wkup_padconf_array_non_essential_4430) /
+ sizeof(struct pad_conf_entry));
}
#ifdef CONFIG_GENERIC_MMC