Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Chip-specific setup code for the AT91SAM9G45 family |
| 3 | * |
| 4 | * Copyright (C) 2009 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> |
Olof Johansson | 6ac8d68 | 2014-11-08 22:39:51 -0800 | [diff] [blame] | 14 | #include <asm/irq.h> |
Uwe Kleine-König | ac11a1d | 2013-11-14 10:49:19 +0100 | [diff] [blame] | 15 | #include <mach/hardware.h> |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 16 | |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 17 | #include "soc.h" |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 18 | #include "generic.h" |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 19 | |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 20 | /* -------------------------------------------------------------------- |
| 21 | * AT91SAM9G45 processor initialization |
| 22 | * -------------------------------------------------------------------- */ |
| 23 | |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 24 | static void __init at91sam9g45_map_io(void) |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 25 | { |
Jean-Christophe PLAGNIOL-VILLARD | f0051d8 | 2011-05-10 03:20:09 +0800 | [diff] [blame] | 26 | at91_init_sram(0, AT91SAM9G45_SRAM_BASE, AT91SAM9G45_SRAM_SIZE); |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 27 | } |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 28 | |
Jean-Christophe PLAGNIOL-VILLARD | 4653937 | 2011-04-24 18:20:28 +0800 | [diff] [blame] | 29 | static void __init at91sam9g45_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; |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 32 | |
Johan Hovold | 6de714c | 2013-10-16 11:56:14 +0200 | [diff] [blame] | 33 | at91_sysirq_mask_rtc(AT91SAM9G45_BASE_RTC); |
Johan Hovold | 94c4c79 | 2013-10-16 11:56:15 +0200 | [diff] [blame] | 34 | at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT); |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 35 | } |
| 36 | |
Ludovic Desroches | 84ddb08 | 2013-03-22 13:24:09 +0000 | [diff] [blame] | 37 | AT91_SOC_START(at91sam9g45) |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 38 | .map_io = at91sam9g45_map_io, |
| 39 | .init = at91sam9g45_initialize, |
Jean-Christophe PLAGNIOL-VILLARD | 8d39e0fd0 | 2012-08-16 17:36:55 +0800 | [diff] [blame] | 40 | AT91_SOC_END |