diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-04 01:20:18 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-20 15:02:36 +0200 |
commit | 81362c2b2a81d63f93e9534aa624c7f265c55947 (patch) | |
tree | 23b3def1f64276305469b9e2a4a86dc25895e651 /arch/arm/mach-at91/at91sam9260.c | |
parent | 35144c0b867d03a09118f02f1e9e43111e6f544a (diff) | |
download | barebox-81362c2b2a81d63f93e9534aa624c7f265c55947.tar.gz barebox-81362c2b2a81d63f93e9534aa624c7f265c55947.tar.xz |
at91sam9: move to at91
this will allow to add at91rm9200 with the same api as done in the kernel
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c new file mode 100644 index 0000000000..04e954b039 --- /dev/null +++ b/arch/arm/mach-at91/at91sam9260.c @@ -0,0 +1,26 @@ +#include <common.h> +#include <gpio.h> +#include <init.h> +#include <asm/hardware.h> + +static struct at91_gpio_bank at91sam9260_gpio[] = { + { + .id = AT91C_ID_PIOA, + .regbase = (void __iomem *)AT91C_BASE_PIOA, + }, { + .id = AT91C_ID_PIOB, + .regbase = (void __iomem *)AT91C_BASE_PIOB, + }, { + .id = AT91C_ID_PIOC, + .regbase = (void __iomem *)AT91C_BASE_PIOC, + } +}; + +static int at91sam9260_initialize(void) +{ + /* Register GPIO subsystem */ + at91_gpio_init(at91sam9260_gpio, 3); + return 0; +} + +core_initcall(at91sam9260_initialize); |