Commit 5ba6e8b3c142058991c6b2b826fb11125718c186

Authored by Peng Fan
1 parent 384e1c1f52

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)

Showing 1 changed file with 2 additions and 8 deletions Side-by-side Diff

board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
1 1 /*
2   - * Copyright (C) 2015 Freescale Semiconductor, Inc.
  2 + * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
3 3 *
4 4 * SPDX-License-Identifier: GPL-2.0+
5 5 */
... ... @@ -97,7 +97,7 @@
97 97 #define IOX_SDI IMX_GPIO_NR(5, 10)
98 98 #define IOX_STCP IMX_GPIO_NR(5, 7)
99 99 #define IOX_SHCP IMX_GPIO_NR(5, 11)
100   -#define IOX_OE IMX_GPIO_NR(5, 18)
  100 +#define IOX_OE IMX_GPIO_NR(5, 8)
101 101  
102 102 static iomux_v3_cfg_t const iox_pads[] = {
103 103 /* IOX_SDI */
104 104  
... ... @@ -185,16 +185,12 @@
185 185 * shift register will be output to pins
186 186 */
187 187 gpio_direction_output(IOX_STCP, 1);
188   -
189   - gpio_direction_output(IOX_OE, 1);
190 188 };
191 189  
192 190 void iox74lv_set(int index)
193 191 {
194 192 int i;
195 193  
196   - gpio_direction_output(IOX_OE, 0);
197   -
198 194 for (i = 7; i >= 0; i--) {
199 195 gpio_direction_output(IOX_SHCP, 0);
200 196  
... ... @@ -228,8 +224,6 @@
228 224 * shift register will be output to pins
229 225 */
230 226 gpio_direction_output(IOX_STCP, 1);
231   -
232   - gpio_direction_output(IOX_OE, 1);
233 227 };
234 228  
235 229