OMAP3: pandora: pin mux updates for DM3730 board variant
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 22 Mar 2012 13:49:21 +0000 (13:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:27 +0000 (08:31 +0200)
DM3730 needs some additional pin mux configuration for GPIOs
126-129 to work, add it.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
arch/arm/include/asm/arch-omap3/mux.h
board/pandora/pandora.c
board/pandora/pandora.h

index 6daef49e97fff9de1d06685bc8206be193a035d3..71f183de8d1f47e2db3654264ee42bf9c288eead 100644 (file)
 #define CONTROL_PADCONF_STRBEN_DLY1    0x0224
 #define CONTROL_PADCONF_SYS_BOOT8      0x0226
 
+/* AM/DM37xx specific */
+#define CONTROL_PADCONF_GPIO127                0x0A54
+#define CONTROL_PADCONF_GPIO126                0x0A56
+#define CONTROL_PADCONF_GPIO128                0x0A58
+#define CONTROL_PADCONF_GPIO129                0x0A5A
+
 #define MUX_VAL(OFFSET,VALUE)\
        writew((VALUE), OMAP34XX_CTRL_BASE + (OFFSET));
 
index f369598d77e825f20580fa764421246b33438303..5c77fad699a94e2434de20b44cde721897385b96 100644 (file)
@@ -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
index f0ad16b0a407345cf9497fb8d1bd878c193198d4..fea8bf259a830f5f60677cf15883130c688bf2bd 100644 (file)
@@ -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