From 31da76c496511b3d640ac1008b630b3ec939e168 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Wed, 21 Jun 2017 10:47:16 +0800 Subject: MLK-15127 mx7dsdb: fix epdc en gpio usage Request gpio before use it, otherwise it will fail to drive the gpio when gpio_direction_output. Signed-off-by: Peng Fan Reviewed-by: Ye Li --- board/freescale/mx7dsabresd/mx7dsabresd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index 85e6fca..216f5b3 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -595,6 +595,7 @@ int board_init(void) */ imx_iomux_v3_setup_multiple_pads(epdc_en_pads, ARRAY_SIZE(epdc_en_pads)); + gpio_request(IMX_GPIO_NR(1, 4), "epdc_en"); gpio_direction_output(IMX_GPIO_NR(1, 4), 1); } setup_epdc(); -- cgit v1.1