at91sam9: switch to the same api as the kernel
[barebox-mini2440.git] / arch / arm / mach-at91 / at91sam9260.c
blob1a6e35648234f6cb00dc68c7fd6672cae970a66b
1 #include <common.h>
2 #include <gpio.h>
3 #include <init.h>
4 #include <asm/hardware.h>
6 static struct at91_gpio_bank at91sam9260_gpio[] = {
8 .id = AT91SAM9260_ID_PIOA,
9 .offset = AT91_PIOA,
10 }, {
11 .id = AT91SAM9260_ID_PIOB,
12 .offset = AT91_PIOB,
13 }, {
14 .id = AT91SAM9260_ID_PIOC,
15 .offset = AT91_PIOC,
19 static int at91sam9260_initialize(void)
21 /* Register GPIO subsystem */
22 at91_gpio_init(at91sam9260_gpio, 3);
23 return 0;
26 core_initcall(at91sam9260_initialize);