diff options
author | Ye Li <ye.li@nxp.com> | 2017-05-14 21:15:56 -0500 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-05-14 23:57:43 -0500 |
commit | 09f2bc9e534bd9235a298bac6f0df940b315e9b6 (patch) | |
tree | 0afd01dd59c7fd841ba446eca80bfe384c0568f1 | |
parent | 530a9418ddbd1a4a3ca664fe911e630026e32dfb (diff) | |
download | u-boot-imx-09f2bc9e534bd9235a298bac6f0df940b315e9b6.zip u-boot-imx-09f2bc9e534bd9235a298bac6f0df940b315e9b6.tar.gz u-boot-imx-09f2bc9e534bd9235a298bac6f0df940b315e9b6.tar.bz2 |
MLK-14891 mx6slevk/mx6sll_arm2: Fix SPINOR CS GPIO using
Needs to request the GPIO pin before assigning to GPIO to SPI driver
which will directly setting it to output without request it.
Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | board/freescale/mx6slevk/mx6slevk.c | 3 | ||||
-rw-r--r-- | board/freescale/mx6sll_arm2/mx6sll_arm2.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index f60df7f..108305e 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -165,6 +165,9 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs) static void setup_spi(void) { imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads)); + + gpio_request(IMX_GPIO_NR(4, 11), "escpi cs"); + gpio_direction_output(IMX_GPIO_NR(4, 11), 0); } #endif diff --git a/board/freescale/mx6sll_arm2/mx6sll_arm2.c b/board/freescale/mx6sll_arm2/mx6sll_arm2.c index bde8962..b565538 100644 --- a/board/freescale/mx6sll_arm2/mx6sll_arm2.c +++ b/board/freescale/mx6sll_arm2/mx6sll_arm2.c @@ -358,6 +358,7 @@ void setup_spinor(void) { imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads)); + gpio_request(IMX_GPIO_NR(4, 11), "escpi cs"); gpio_direction_output(IMX_GPIO_NR(4, 11), 0); } |