Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git] / arch / arm / mach-at91 / at91sam9261.c
1 /*
2  * arch/arm/mach-at91/at91sam9261.c
3  *
4  *  Copyright (C) 2005 SAN People
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  */
12
13 #include <asm/system_misc.h>
14 #include <mach/cpu.h>
15 #include <mach/hardware.h>
16
17 #include "soc.h"
18 #include "generic.h"
19
20 /* --------------------------------------------------------------------
21  *  AT91SAM9261 processor initialization
22  * -------------------------------------------------------------------- */
23
24 static void __init at91sam9261_map_io(void)
25 {
26         if (cpu_is_at91sam9g10())
27                 at91_init_sram(0, AT91SAM9G10_SRAM_BASE, AT91SAM9G10_SRAM_SIZE);
28         else
29                 at91_init_sram(0, AT91SAM9261_SRAM_BASE, AT91SAM9261_SRAM_SIZE);
30 }
31
32 static void __init at91sam9261_initialize(void)
33 {
34         arm_pm_idle = at91sam9_idle;
35
36         at91_sysirq_mask_rtt(AT91SAM9261_BASE_RTT);
37 }
38
39 AT91_SOC_START(at91sam9261)
40         .map_io = at91sam9261_map_io,
41         .init = at91sam9261_initialize,
42 AT91_SOC_END