summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-04-28 12:37:40 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-04-28 12:37:40 +0200
commit6516cec7a917381ac93a3025414164ec1fa5593c (patch)
treef4a8a95a6b7f373ab6c7945016895453141a435b
parent214db18e6c38454e1c4d22b472dda07db062f976 (diff)
apalis_imx6.c: mux pin GPIO18 to GPIO inputtoradex_imx6
The bootrom sets the iomux to vselect, potentially connecting two outputs. Set this back to GPIO in early init.
-rw-r--r--board/toradex/apalis_imx6/apalis_imx6.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index a870075299..70d41dadb3 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -426,6 +426,12 @@ static iomux_v3_cfg_t const backlight_pads[] = {
#define VGA_PSAVE_NOT_GP IMX_GPIO_NR(6, 31)
};
+static iomux_v3_cfg_t const pwr_intb_pads[] = {
+ /* the bootrom sets the iomux to vselect, potentially connecting
+ * two outputs. Set this back to GPIO */
+ MX6_PAD_GPIO_18__GPIO_7_13 | MUX_PAD_CTRL(NO_PAD_CTRL)
+};
+
static iomux_v3_cfg_t const rgb_pads[] = {
MX6_PAD_EIM_A16__IPU1_DI1_DISP_CLK,
MX6_PAD_EIM_DA10__IPU1_DI1_PIN15,
@@ -772,6 +778,8 @@ static void setup_display(void)
int board_early_init_f(void)
{
+ imx_iomux_v3_setup_multiple_pads(pwr_intb_pads,
+ ARRAY_SIZE(pwr_intb_pads));
setup_iomux_uart();
#if defined(CONFIG_VIDEO_IPUV3)