summaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana/common.h
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/common.h
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/common.h')
-rw-r--r--board/gateworks/gw_ventana/common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/gateworks/gw_ventana/common.h b/board/gateworks/gw_ventana/common.h
index 389d3aa..3d7aff1 100644
--- a/board/gateworks/gw_ventana/common.h
+++ b/board/gateworks/gw_ventana/common.h
@@ -48,8 +48,8 @@
#define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
/*
- * each baseboard has 4 user configurable Digital IO lines which can
- * be pinmuxed as a GPIO or in some cases a PWM
+ * each baseboard has an optional set user configurable Digital IO lines which
+ * can be pinmuxed as a GPIO or in some cases a PWM
*/
struct dio_cfg {
iomux_v3_cfg_t gpio_padmux[2];
@@ -63,8 +63,8 @@ struct ventana {
iomux_v3_cfg_t const *gpio_pads;
int num_pads;
/* DIO pinmux/val */
- struct dio_cfg dio_cfg[4];
- int num_gpios;
+ struct dio_cfg *dio_cfg;
+ int dio_num;
/* various gpios (0 if non-existent) */
int leds[3];
int pcie_rst;