Skip to content
Snippets Groups Projects
Commit b3ab0fc7 authored by Simon Glass's avatar Simon Glass Committed by Andreas Bießmann
Browse files

at91: Add driver-model GPIO devices for AT91SAM9G45


Add these definitions so that GPIOs can be used with driver model.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
Tested-on: smartweb, corvus, taurus, axm
Tested-by: default avatarHeiko Schocher <hs@denx.de>
Reviewed-by: default avatarAndreas Bießmann <andreas@biessmann.org>
parent 65319f15
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <dm.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
#include <asm/arch/gpio.h>
......@@ -165,3 +166,20 @@ void at91_mci_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_MCI0);
}
#endif
/* Platform data for the GPIOs */
static const struct at91_port_platdata at91sam9260_plat[] = {
{ ATMEL_BASE_PIOA, "PA" },
{ ATMEL_BASE_PIOB, "PB" },
{ ATMEL_BASE_PIOC, "PC" },
{ ATMEL_BASE_PIOD, "PD" },
{ ATMEL_BASE_PIOE, "PE" },
};
U_BOOT_DEVICES(at91sam9260_gpios) = {
{ "gpio_at91", &at91sam9260_plat[0] },
{ "gpio_at91", &at91sam9260_plat[1] },
{ "gpio_at91", &at91sam9260_plat[2] },
{ "gpio_at91", &at91sam9260_plat[3] },
{ "gpio_at91", &at91sam9260_plat[4] },
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment