Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Chip-specific setup code for the SAMA5D3 family |
| 3 | * |
| 4 | * Copyright (C) 2013 Atmel, |
| 5 | * 2013 Ludovic Desroches <ludovic.desroches@atmel.com> |
| 6 | * |
| 7 | * Licensed under GPLv2 or later. |
| 8 | */ |
| 9 | |
| 10 | #include <linux/module.h> |
| 11 | #include <linux/dma-mapping.h> |
Boris BREZILLON | 2edb90a | 2013-10-11 09:37:45 +0200 | [diff] [blame] | 12 | #include <linux/clk/at91_pmc.h> |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 13 | |
| 14 | #include <asm/irq.h> |
| 15 | #include <asm/mach/arch.h> |
| 16 | #include <asm/mach/map.h> |
| 17 | #include <mach/sama5d3.h> |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 18 | #include <mach/cpu.h> |
| 19 | |
| 20 | #include "soc.h" |
| 21 | #include "generic.h" |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 22 | #include "sam9_smc.h" |
| 23 | |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 24 | /* -------------------------------------------------------------------- |
| 25 | * AT91SAM9x5 processor initialization |
| 26 | * -------------------------------------------------------------------- */ |
| 27 | |
| 28 | static void __init sama5d3_map_io(void) |
| 29 | { |
| 30 | at91_init_sram(0, SAMA5D3_SRAM_BASE, SAMA5D3_SRAM_SIZE); |
| 31 | } |
| 32 | |
Johan Hovold | 6de714c | 2013-10-16 11:56:14 +0200 | [diff] [blame] | 33 | static void __init sama5d3_initialize(void) |
| 34 | { |
| 35 | at91_sysirq_mask_rtc(SAMA5D3_BASE_RTC); |
| 36 | } |
| 37 | |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 38 | AT91_SOC_START(sama5d3) |
| 39 | .map_io = sama5d3_map_io, |
Johan Hovold | 6de714c | 2013-10-16 11:56:14 +0200 | [diff] [blame] | 40 | .init = sama5d3_initialize, |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 41 | AT91_SOC_END |