1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * Defines machines for CSR SiRFprimaII
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6*4882a593Smuzhiyun */
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun #include <linux/init.h>
9*4882a593Smuzhiyun #include <linux/kernel.h>
10*4882a593Smuzhiyun #include <linux/sizes.h>
11*4882a593Smuzhiyun #include <asm/mach-types.h>
12*4882a593Smuzhiyun #include <asm/mach/arch.h>
13*4882a593Smuzhiyun #include <linux/of.h>
14*4882a593Smuzhiyun #include <linux/of_platform.h>
15*4882a593Smuzhiyun #include "common.h"
16*4882a593Smuzhiyun
sirfsoc_init_late(void)17*4882a593Smuzhiyun static void __init __maybe_unused sirfsoc_init_late(void)
18*4882a593Smuzhiyun {
19*4882a593Smuzhiyun sirfsoc_pm_init();
20*4882a593Smuzhiyun }
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun #ifdef CONFIG_ARCH_ATLAS6
23*4882a593Smuzhiyun static const char *const atlas6_dt_match[] __initconst = {
24*4882a593Smuzhiyun "sirf,atlas6",
25*4882a593Smuzhiyun NULL
26*4882a593Smuzhiyun };
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
29*4882a593Smuzhiyun /* Maintainer: Barry Song <baohua.song@csr.com> */
30*4882a593Smuzhiyun .l2c_aux_val = 0,
31*4882a593Smuzhiyun .l2c_aux_mask = ~0,
32*4882a593Smuzhiyun .init_late = sirfsoc_init_late,
33*4882a593Smuzhiyun .dt_compat = atlas6_dt_match,
34*4882a593Smuzhiyun MACHINE_END
35*4882a593Smuzhiyun #endif
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun #ifdef CONFIG_ARCH_PRIMA2
38*4882a593Smuzhiyun static const char *const prima2_dt_match[] __initconst = {
39*4882a593Smuzhiyun "sirf,prima2",
40*4882a593Smuzhiyun NULL
41*4882a593Smuzhiyun };
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
44*4882a593Smuzhiyun /* Maintainer: Barry Song <baohua.song@csr.com> */
45*4882a593Smuzhiyun .l2c_aux_val = 0,
46*4882a593Smuzhiyun .l2c_aux_mask = ~0,
47*4882a593Smuzhiyun .dma_zone_size = SZ_256M,
48*4882a593Smuzhiyun .init_late = sirfsoc_init_late,
49*4882a593Smuzhiyun .dt_compat = prima2_dt_match,
50*4882a593Smuzhiyun MACHINE_END
51*4882a593Smuzhiyun #endif
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun #ifdef CONFIG_ARCH_ATLAS7
54*4882a593Smuzhiyun static const char *const atlas7_dt_match[] __initconst = {
55*4882a593Smuzhiyun "sirf,atlas7",
56*4882a593Smuzhiyun NULL
57*4882a593Smuzhiyun };
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun DT_MACHINE_START(ATLAS7_DT, "Generic ATLAS7 (Flattened Device Tree)")
60*4882a593Smuzhiyun /* Maintainer: Barry Song <baohua.song@csr.com> */
61*4882a593Smuzhiyun .smp = smp_ops(sirfsoc_smp_ops),
62*4882a593Smuzhiyun .dt_compat = atlas7_dt_match,
63*4882a593Smuzhiyun MACHINE_END
64*4882a593Smuzhiyun #endif
65