board/BuR/tseries: Chg pinmux - use free NAND Pins in non NAND-config as GPIO
authorHannes Petermaier <oe5hpm@oevsv.at>
Tue, 3 Feb 2015 12:22:32 +0000 (13:22 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Mar 2015 01:13:18 +0000 (20:13 -0500)
On boards were we have no NAND-flash soldered, we want to use those free pins
as regular gpio.

Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
board/BuR/tseries/mux.c

index 36ee04cf98e8be31469cb30784e9977eaffca361..330429acf9b3acfe6f64402e460d81b24a11371d 100644 (file)
@@ -168,7 +168,14 @@ static struct module_pin_mux gpIOs[] = {
        {OFFSET(mcasp0_axr0),  (MODE(7) | PULLUDDIS) },
        /* GPIO3_17 (MCASP0_AHCLKR) - ETH2_LEDY */
        {OFFSET(mcasp0_ahclkr), (MODE(7) | PULLUDDIS) },
-
+#ifndef CONFIG_NAND
+       /* GPIO2_3 - NAND_OE */
+       {OFFSET(gpmc_oen_ren), (MODE(7) | PULLDOWN_EN | RXACTIVE)},
+       /* GPIO2_4 - NAND_WEN */
+       {OFFSET(gpmc_wen), (MODE(7) | PULLDOWN_EN | RXACTIVE)},
+       /* GPIO2_5 - NAND_BE_CLE */
+       {OFFSET(gpmc_be0n_cle), (MODE(7) | PULLDOWN_EN | RXACTIVE)},
+#endif
        {-1},
 };