summaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana/gw_ventana.c
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2016-07-15 07:14:23 -0700
committerStefano Babic <sbabic@denx.de>2016-07-28 13:27:18 +0200
commit1800ffa83e3fe4a3178606a2254d902503b7c80d (patch)
tree05c11dba563181ac1d9320ba8419974395b5fab3 /board/gateworks/gw_ventana/gw_ventana.c
parente49621b357b1ea86170eacd3de8f03af422743e6 (diff)
downloadu-boot-imx-1800ffa83e3fe4a3178606a2254d902503b7c80d.zip
u-boot-imx-1800ffa83e3fe4a3178606a2254d902503b7c80d.tar.gz
u-boot-imx-1800ffa83e3fe4a3178606a2254d902503b7c80d.tar.bz2
imx: ventana: make number of digital I/O's dynamic
Replace the static list of board-specific digital I/O's with a dynamic list. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana/gw_ventana.c')
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index b3390a1..930cec8 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -1209,7 +1209,7 @@ int ft_board_setup(void *blob, bd_t *bd)
}
/* Configure DIO */
- for (i = 0; i < gpio_cfg[board_type].num_gpios; i++) {
+ for (i = 0; i < gpio_cfg[board_type].dio_num; i++) {
struct dio_cfg *cfg = &gpio_cfg[board_type].dio_cfg[i];
char arg[10];