Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-at91/at91sam9263.c |
| 3 | * |
| 4 | * Copyright (C) 2007 Atmel Corporation. |
| 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 | |
David Howells | 9f97da7 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 13 | #include <asm/system_misc.h> |
Uwe Kleine-König | ac11a1d | 2013-11-14 10:49:19 +0100 | [diff] [blame] | 14 | #include <mach/hardware.h> |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 15 | |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 16 | #include "soc.h" |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 17 | #include "generic.h" |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 18 | |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 19 | /* -------------------------------------------------------------------- |
| 20 | * AT91SAM9263 processor initialization |
| 21 | * -------------------------------------------------------------------- */ |
| 22 | |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 23 | static void __init at91sam9263_map_io(void) |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 24 | { |
Jean-Christophe PLAGNIOL-VILLARD | f0051d8 | 2011-05-10 03:20:09 +0800 | [diff] [blame] | 25 | at91_init_sram(0, AT91SAM9263_SRAM0_BASE, AT91SAM9263_SRAM0_SIZE); |
| 26 | at91_init_sram(1, AT91SAM9263_SRAM1_BASE, AT91SAM9263_SRAM1_SIZE); |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 27 | } |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 28 | |
Jean-Christophe PLAGNIOL-VILLARD | 4653937 | 2011-04-24 18:20:28 +0800 | [diff] [blame] | 29 | static void __init at91sam9263_initialize(void) |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 30 | { |
Jean-Christophe PLAGNIOL-VILLARD | 0d78171 | 2012-02-05 20:25:32 +0800 | [diff] [blame] | 31 | arm_pm_idle = at91sam9_idle; |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 32 | |
Johan Hovold | 94c4c79 | 2013-10-16 11:56:15 +0200 | [diff] [blame] | 33 | at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT0); |
| 34 | at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT1); |
Maxime Ripard | 0f391f1 | 2014-07-01 11:33:25 +0200 | [diff] [blame] | 35 | } |
| 36 | |
Ludovic Desroches | 84ddb08 | 2013-03-22 13:24:09 +0000 | [diff] [blame] | 37 | AT91_SOC_START(at91sam9263) |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 38 | .map_io = at91sam9263_map_io, |
| 39 | .init = at91sam9263_initialize, |
Jean-Christophe PLAGNIOL-VILLARD | 8d39e0fd0 | 2012-08-16 17:36:55 +0800 | [diff] [blame] | 40 | AT91_SOC_END |