summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-03-15 17:42:42 +0800
committerPeng Fan <peng.fan@nxp.com>2016-03-15 17:42:42 +0800
commit5ba6e8b3c142058991c6b2b826fb11125718c186 (patch)
tree33a718a39b329cbf5a120155180f93b422c976c3
parent384e1c1f527d732a863cef360f5da419a728b1d5 (diff)
downloadu-boot-imx-5ba6e8b3c142058991c6b2b826fb11125718c186.zip
u-boot-imx-5ba6e8b3c142058991c6b2b826fb11125718c186.tar.gz
u-boot-imx-5ba6e8b3c142058991c6b2b826fb11125718c186.tar.bz2
MLK-12551: imx6ul evk: fix 74LV OE usage
Fix 74LV OE gpio index. pinmux is correct, but gpio index is wrong, so gpio output will not have effect, since we use wrong GPIO5_IO18, but not correct GPIO5_IO8. And at the end of the initialization of 74lv init, should keep OE voltage level at LOW, but not high. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit be7654b4cd7edd456ca8d5df3a51cc04ee2fb8f4)
-rw-r--r--board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index c09e2ae..e3d9c39 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -97,7 +97,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define IOX_SDI IMX_GPIO_NR(5, 10)
#define IOX_STCP IMX_GPIO_NR(5, 7)
#define IOX_SHCP IMX_GPIO_NR(5, 11)
-#define IOX_OE IMX_GPIO_NR(5, 18)
+#define IOX_OE IMX_GPIO_NR(5, 8)
static iomux_v3_cfg_t const iox_pads[] = {
/* IOX_SDI */
@@ -185,16 +185,12 @@ void iox74lv_init(void)
* shift register will be output to pins
*/
gpio_direction_output(IOX_STCP, 1);
-
- gpio_direction_output(IOX_OE, 1);
};
void iox74lv_set(int index)
{
int i;
- gpio_direction_output(IOX_OE, 0);
-
for (i = 7; i >= 0; i--) {
gpio_direction_output(IOX_SHCP, 0);
@@ -228,8 +224,6 @@ void iox74lv_set(int index)
* shift register will be output to pins
*/
gpio_direction_output(IOX_STCP, 1);
-
- gpio_direction_output(IOX_OE, 1);
};