blob: 3d775d08de08def15011e449bca421fe19dc0f95 [file] [log] [blame]
Ludovic Desroches8f4b4792013-03-22 13:24:12 +00001/*
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 BREZILLON2edb90a2013-10-11 09:37:45 +020012#include <linux/clk/at91_pmc.h>
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000013
14#include <asm/irq.h>
15#include <asm/mach/arch.h>
16#include <asm/mach/map.h>
17#include <mach/sama5d3.h>
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000018#include <mach/cpu.h>
19
20#include "soc.h"
21#include "generic.h"
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000022#include "sam9_smc.h"
23
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000024/* --------------------------------------------------------------------
25 * AT91SAM9x5 processor initialization
26 * -------------------------------------------------------------------- */
27
28static void __init sama5d3_map_io(void)
29{
30 at91_init_sram(0, SAMA5D3_SRAM_BASE, SAMA5D3_SRAM_SIZE);
31}
32
Johan Hovold6de714c2013-10-16 11:56:14 +020033static void __init sama5d3_initialize(void)
34{
35 at91_sysirq_mask_rtc(SAMA5D3_BASE_RTC);
36}
37
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000038AT91_SOC_START(sama5d3)
39 .map_io = sama5d3_map_io,
Johan Hovold6de714c2013-10-16 11:56:14 +020040 .init = sama5d3_initialize,
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000041AT91_SOC_END