diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2015-04-09 19:47:24 +0530 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-04-22 18:12:25 +0200 |
commit | 5974064c17332a188a7f44c68e2ceab32ee76b0f (patch) | |
tree | f6c62064d36ccf1ceb2b4ffd515efb66bd4604f7 | |
parent | 359fc6e6d00eb33f2e71d7dbb84eb5394dadf451 (diff) |
dm: colibri_vf: Add gpio pltform data
Add GPIO platform data which will be
used when device tree control was
not enabled
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
-rw-r--r-- | board/toradex/colibri_vf/colibri_vf.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c index 0d2bb7ba6ec..5c72a2786fc 100644 --- a/board/toradex/colibri_vf/colibri_vf.c +++ b/board/toradex/colibri_vf/colibri_vf.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <dm.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux-vf610.h> @@ -22,6 +23,7 @@ #include <netdev.h> #include <i2c.h> #include <g_dnl.h> +#include <asm/gpio.h> #include "../common/configblock.h" @@ -394,6 +396,24 @@ static const struct boot_mode board_boot_modes[] = { }; #endif +#ifndef CONFIG_OF_CONTROL +static const struct vybrid_gpio_platdata vybrid_gpio[] = { + {0, GPIO0_BASE_ADDR}, + {1, GPIO1_BASE_ADDR}, + {2, GPIO2_BASE_ADDR}, + {3, GPIO3_BASE_ADDR}, + {4, GPIO4_BASE_ADDR}, +}; + +U_BOOT_DEVICES(vybrid_gpio) = { + { "gpio_vybrid", &vybrid_gpio[0] }, + { "gpio_vybrid", &vybrid_gpio[1] }, + { "gpio_vybrid", &vybrid_gpio[2] }, + { "gpio_vybrid", &vybrid_gpio[3] }, + { "gpio_vybrid", &vybrid_gpio[4] }, +}; +#endif + #ifdef CONFIG_BOARD_LATE_INIT int board_late_init(void) { |