diff options
author | Tim Harvey <tharvey@gateworks.com> | 2016-07-15 07:14:23 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-28 13:27:18 +0200 |
commit | 1800ffa83e3fe4a3178606a2254d902503b7c80d (patch) | |
tree | 05c11dba563181ac1d9320ba8419974395b5fab3 /board/gateworks/gw_ventana/common.h | |
parent | e49621b357b1ea86170eacd3de8f03af422743e6 (diff) | |
download | u-boot-1800ffa83e3fe4a3178606a2254d902503b7c80d.tar.gz |
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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/gateworks/gw_ventana/common.h b/board/gateworks/gw_ventana/common.h index 389d3aa4ee..3d7aff1077 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; |