]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dra7x/am57x: Remove pin input/output config from WAKEUP pins
authorCooper Jr., Franklin <fcooper@ti.com>
Thu, 19 Nov 2015 14:03:54 +0000 (08:03 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 22 Nov 2015 02:50:19 +0000 (21:50 -0500)
The WAKEUP_X pins are always an input no matter the pinmux mode.
However, the 18th bit that typical configures a pin as an input is
considered reserved for the WAKEUP_X pins. Therefore, for any WAKEUP
pin remove any configuration that sets that pin as an input. Since
those pins are only inputs remove any output configuration from those
pins.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
board/ti/am57xx/mux_data.h
board/ti/dra7xx/mux_data.h

index 23f22a02bece2ce0de351bd15ef96c0095cc3dc4..3c007b76dd5b4584e626dc07ba425e77c0dec282 100644 (file)
@@ -255,10 +255,10 @@ const struct pad_conf_entry core_padconf_array_essential[] = {
        {UART2_RTSN, (M1 | PIN_INPUT_SLEW)},    /* uart2_rtsn.uart3_txd */
        {I2C2_SDA, (M1 | PIN_INPUT)},           /* i2c2_sda.hdmi1_ddc_scl */
        {I2C2_SCL, (M1 | PIN_INPUT)},           /* i2c2_scl.hdmi1_ddc_sda */
-       {WAKEUP0, (M0 | PIN_OUTPUT_PULLUP)},    /* Wakeup0.Wakeup0 */
-       {WAKEUP1, (M0 | PIN_OUTPUT_PULLDOWN)},  /* Wakeup1.Wakeup1 */
-       {WAKEUP2, (M0 | PIN_OUTPUT_PULLDOWN)},  /* Wakeup2.Wakeup2 */
-       {WAKEUP3, (M0 | PIN_OUTPUT_PULLUP)},    /* Wakeup3.Wakeup3 */
+       {WAKEUP0, (M0 | PULL_UP)},              /* Wakeup0.Wakeup0 */
+       {WAKEUP1, (M0)},                        /* Wakeup1.Wakeup1 */
+       {WAKEUP2, (M0)},                        /* Wakeup2.Wakeup2 */
+       {WAKEUP3, (M0 | PULL_UP)},              /* Wakeup3.Wakeup3 */
        {ON_OFF, (M1 | PIN_OUTPUT_PULLUP)},     /* on_off.on_off */
        {RTC_PORZ, (M0 | PIN_OUTPUT_PULLDOWN)}, /* rtc_porz.rtc_porz */
        {RTCK, (M0 | PIN_INPUT_PULLDOWN)},      /* rtck.rtck */
index bf401443e46541ae5253fdf9de898990754fb8b2..1bfb36243b5f47851aed1f5dc9687af6e5351a16 100644 (file)
@@ -372,7 +372,7 @@ const struct pad_conf_entry dra74x_core_padconf_array[] = {
        {I2C2_SDA, (M0 | PIN_INPUT_PULLUP)},    /* i2c2_sda.i2c2_sda */
        {I2C2_SCL, (M0 | PIN_INPUT_PULLUP)},    /* i2c2_scl.i2c2_scl */
        {WAKEUP0, (M15 | PULL_UP)},     /* Wakeup0.safe for dcan1_rx */
-       {WAKEUP2, (M14 | PIN_OUTPUT)},  /* Wakeup2.gpio1_2 */
+       {WAKEUP2, (M14)},               /* Wakeup2.gpio1_2 */
 };
 
 #ifdef CONFIG_IODELAY_RECALIBRATION