diff options
author | Peng Fan <peng.fan@nxp.com> | 2017-06-21 10:47:16 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2017-06-21 10:56:08 +0800 |
commit | 31da76c496511b3d640ac1008b630b3ec939e168 (patch) | |
tree | 48f22aacdb52f7e3f158f8f88b27473572da0219 /board | |
parent | 2885cf75f2f944c6ededd7fb0d3189ba6681f0cc (diff) | |
download | u-boot-imx-31da76c496511b3d640ac1008b630b3ec939e168.zip u-boot-imx-31da76c496511b3d640ac1008b630b3ec939e168.tar.gz u-boot-imx-31da76c496511b3d640ac1008b630b3ec939e168.tar.bz2 |
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 <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx7dsabresd/mx7dsabresd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |