Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / arm / mach-prima2 / common.c
blobd49aff74de98a778c14dfc495718adfc6e15fdb6
1 /*
2 * Defines machines for CSR SiRFprimaII
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
7 */
9 #include <linux/init.h>
10 #include <linux/kernel.h>
11 #include <asm/sizes.h>
12 #include <asm/mach-types.h>
13 #include <asm/mach/arch.h>
14 #include <linux/of.h>
15 #include <linux/of_platform.h>
16 #include "common.h"
18 void __init sirfsoc_init_late(void)
20 sirfsoc_pm_init();
23 static __init void sirfsoc_map_io(void)
25 sirfsoc_map_lluart();
26 sirfsoc_map_scu();
29 #ifdef CONFIG_ARCH_ATLAS6
30 static const char *atlas6_dt_match[] __initdata = {
31 "sirf,atlas6",
32 NULL
35 DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
36 /* Maintainer: Barry Song <baohua.song@csr.com> */
37 .map_io = sirfsoc_map_io,
38 .init_late = sirfsoc_init_late,
39 .dt_compat = atlas6_dt_match,
40 .restart = sirfsoc_restart,
41 MACHINE_END
42 #endif
44 #ifdef CONFIG_ARCH_PRIMA2
45 static const char *prima2_dt_match[] __initdata = {
46 "sirf,prima2",
47 NULL
50 DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
51 /* Maintainer: Barry Song <baohua.song@csr.com> */
52 .map_io = sirfsoc_map_io,
53 .dma_zone_size = SZ_256M,
54 .init_late = sirfsoc_init_late,
55 .dt_compat = prima2_dt_match,
56 .restart = sirfsoc_restart,
57 MACHINE_END
58 #endif
60 #ifdef CONFIG_ARCH_MARCO
61 static const char *marco_dt_match[] __initdata = {
62 "sirf,marco",
63 NULL
66 DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
67 /* Maintainer: Barry Song <baohua.song@csr.com> */
68 .smp = smp_ops(sirfsoc_smp_ops),
69 .map_io = sirfsoc_map_io,
70 .init_late = sirfsoc_init_late,
71 .dt_compat = marco_dt_match,
72 .restart = sirfsoc_restart,
73 MACHINE_END
74 #endif