summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2012-09-13 11:18:34 -0700
committerJustin Waters <justin.waters@timesys.com>2012-09-24 11:15:35 -0400
commitab03af045a4b6a4856cc57efd139554f9d270a1d (patch)
tree1f7152fa01f1d4883a56759226361635cb840233
parent9a876ebbf59462bc94ea5abcf854725ad64f65a1 (diff)
mx6q_sabrelite: configure pinmux for Nitrogen6x (wl12xx pads)2009.08-boundary-imx6-201209131118
-rw-r--r--board/freescale/mx6q_sabrelite/mx6q_sabrelite.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
index 7654f67f41a..ba8abae118e 100644
--- a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
+++ b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
@@ -420,6 +420,13 @@ u32 get_ddr_delay(struct fsl_esdhc_cfg *cfg)
#endif
+/* Disable wl1271 for Nitrogen6w */
+iomux_v3_cfg_t wl12xx_pads[] = {
+ (MX6Q_PAD_NANDF_CS1__GPIO_6_14 & ~MUX_PAD_CTRL_MASK) | MUX_PAD_CTRL(0x1b0b0),
+ (MX6Q_PAD_NANDF_CS2__GPIO_6_15 & ~MUX_PAD_CTRL_MASK) | MUX_PAD_CTRL(0x000b0),
+ (MX6Q_PAD_NANDF_CS3__GPIO_6_16 & ~MUX_PAD_CTRL_MASK) | MUX_PAD_CTRL(0x000b0),
+};
+
int board_init(void)
{
#ifdef CONFIG_MFG
@@ -431,6 +438,11 @@ int board_init(void)
#endif
mxc_iomux_v3_init((void *)IOMUXC_BASE_ADDR);
setup_boot_device();
+
+ /* Disable wl1271 For Nitrogen6w */
+ set_gpio_output_val(GPIO6_BASE_ADDR, (1 << 15) | (1 << 16), 0);
+ mxc_iomux_v3_setup_multiple_pads(wl12xx_pads, ARRAY_SIZE(wl12xx_pads));
+
fsl_set_system_rev();
/* board id for linux */