summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2012-03-22 13:49:21 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:27 +0200
commit10cd73bf874c175d8892079b51821912e535d927 (patch)
treecb0f5b4f9e66be69a498df2151f62e56986d59ee /board
parent06a119a03147aec3cf1fe746a6ef0aa1c66e7e72 (diff)
downloadu-boot-imx-10cd73bf874c175d8892079b51821912e535d927.zip
u-boot-imx-10cd73bf874c175d8892079b51821912e535d927.tar.gz
u-boot-imx-10cd73bf874c175d8892079b51821912e535d927.tar.bz2
OMAP3: pandora: pin mux updates for DM3730 board variant
DM3730 needs some additional pin mux configuration for GPIOs 126-129 to work, add it. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/pandora/pandora.c3
-rw-r--r--board/pandora/pandora.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/board/pandora/pandora.c b/board/pandora/pandora.c
index f369598..5c77fad 100644
--- a/board/pandora/pandora.c
+++ b/board/pandora/pandora.c
@@ -103,6 +103,9 @@ int misc_init_r(void)
void set_muxconf_regs(void)
{
MUX_PANDORA();
+ if (get_cpu_family() == CPU_OMAP36XX) {
+ MUX_PANDORA_3730();
+ }
}
#ifdef CONFIG_GENERIC_MMC
diff --git a/board/pandora/pandora.h b/board/pandora/pandora.h
index f0ad16b..fea8bf2 100644
--- a/board/pandora/pandora.h
+++ b/board/pandora/pandora.h
@@ -399,4 +399,10 @@ const omap3_sysinfo sysinfo = {
MUX_VAL(CP(SDRC_CKE0), (IDIS | PTU | EN | M0)) /*sdrc_cke0*/\
MUX_VAL(CP(SDRC_CKE1), (IDIS | PTU | EN | M0)) /*sdrc_cke1*/
+#define MUX_PANDORA_3730() \
+ MUX_VAL(CP(GPIO126), (IEN | PTD | DIS | M4)) /*GPIO_126 - MMC1_WP*/\
+ MUX_VAL(CP(GPIO127), (IEN | PTD | DIS | M4)) /*GPIO_127 - MMC2_WP*/\
+ MUX_VAL(CP(GPIO128), (IDIS | PTD | DIS | M4)) /*GPIO_128 - LED_MMC1*/\
+ MUX_VAL(CP(GPIO129), (IDIS | PTD | DIS | M4)) /*GPIO_129 - LED_MMC2*/
+
#endif