2 * Chip-specific setup code for the SAMA5D4 family
4 * Copyright (C) 2013 Atmel Corporation,
5 * Nicolas Ferre <nicolas.ferre@atmel.com>
7 * Licensed under GPLv2 or later.
10 #include <linux/module.h>
11 #include <linux/dma-mapping.h>
12 #include <linux/clk/at91_pmc.h>
15 #include <asm/mach/arch.h>
16 #include <asm/mach/map.h>
17 #include <mach/sama5d4.h>
19 #include <mach/hardware.h>
25 /* --------------------------------------------------------------------
26 * Processor initialization
27 * -------------------------------------------------------------------- */
28 static struct map_desc at91_io_desc[] __initdata = {
30 .virtual = (unsigned long)AT91_ALT_IO_P2V(SAMA5D4_BASE_MPDDRC),
31 .pfn = __phys_to_pfn(SAMA5D4_BASE_MPDDRC),
36 .virtual = (unsigned long)AT91_ALT_IO_P2V(SAMA5D4_BASE_PMC),
37 .pfn = __phys_to_pfn(SAMA5D4_BASE_PMC),
41 { /* On sama5d4, we use USART3 as serial console */
42 .virtual = (unsigned long)AT91_ALT_IO_P2V(SAMA5D4_BASE_USART3),
43 .pfn = __phys_to_pfn(SAMA5D4_BASE_USART3),
47 { /* A bunch of peripheral with fine grained IO space */
48 .virtual = (unsigned long)AT91_ALT_IO_P2V(SAMA5D4_BASE_SYS2),
49 .pfn = __phys_to_pfn(SAMA5D4_BASE_SYS2),
56 static void __init sama5d4_map_io(void)
58 iotable_init(at91_io_desc, ARRAY_SIZE(at91_io_desc));
61 AT91_SOC_START(sama5d4)
62 .map_io = sama5d4_map_io,