From 5974064c17332a188a7f44c68e2ceab32ee76b0f Mon Sep 17 00:00:00 2001 From: Bhuvanchandra DV Date: Thu, 9 Apr 2015 19:47:24 +0530 Subject: 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 --- board/toradex/colibri_vf/colibri_vf.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'board') diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c index 0d2bb7ba6e..5c72a2786f 100644 --- a/board/toradex/colibri_vf/colibri_vf.c +++ b/board/toradex/colibri_vf/colibri_vf.c @@ -8,6 +8,7 @@ */ #include +#include #include #include #include @@ -22,6 +23,7 @@ #include #include #include +#include #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) { -- cgit v1.2.3