ARM: at91: pm: remove warning to remove SOC_AT91SAM9263 usage
[pandora-kernel.git] / arch / arm / mach-prima2 / common.c
1 /*
2  * Defines machines for CSR SiRFprimaII
3  *
4  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5  *
6  * Licensed under GPLv2 or later.
7  */
8
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"
17
18 static void __init sirfsoc_init_late(void)
19 {
20         sirfsoc_pm_init();
21 }
22
23 static __init void sirfsoc_map_io(void)
24 {
25         sirfsoc_map_lluart();
26         sirfsoc_map_scu();
27 }
28
29 #ifdef CONFIG_ARCH_ATLAS6
30 static const char *atlas6_dt_match[] __initconst = {
31         "sirf,atlas6",
32         NULL
33 };
34
35 DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
36         /* Maintainer: Barry Song <baohua.song@csr.com> */
37         .l2c_aux_val    = 0,
38         .l2c_aux_mask   = ~0,
39         .map_io         = sirfsoc_map_io,
40         .init_late      = sirfsoc_init_late,
41         .dt_compat      = atlas6_dt_match,
42 MACHINE_END
43 #endif
44
45 #ifdef CONFIG_ARCH_PRIMA2
46 static const char *prima2_dt_match[] __initconst = {
47         "sirf,prima2",
48         NULL
49 };
50
51 DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
52         /* Maintainer: Barry Song <baohua.song@csr.com> */
53         .l2c_aux_val    = 0,
54         .l2c_aux_mask   = ~0,
55         .map_io         = sirfsoc_map_io,
56         .dma_zone_size  = SZ_256M,
57         .init_late      = sirfsoc_init_late,
58         .dt_compat      = prima2_dt_match,
59 MACHINE_END
60 #endif
61
62 #ifdef CONFIG_ARCH_MARCO
63 static const char *marco_dt_match[] __initconst = {
64         "sirf,marco",
65         NULL
66 };
67
68 DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
69         /* Maintainer: Barry Song <baohua.song@csr.com> */
70         .l2c_aux_val    = 0,
71         .l2c_aux_mask   = ~0,
72         .smp            = smp_ops(sirfsoc_smp_ops),
73         .map_io         = sirfsoc_map_io,
74         .init_late      = sirfsoc_init_late,
75         .dt_compat      = marco_dt_match,
76 MACHINE_END
77 #endif