blob: 8cadb302a7d2f54a3bbcddaf7296606293d69e4e [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
Barry Song013dd122011-09-22 22:51:30 -07002 * Defines machines for CSR SiRFprimaII
Binghua Duan02c981c2011-07-08 17:40:12 +08003 *
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>
Barry Song1bdfd27a2011-11-17 22:18:14 +080011#include <asm/sizes.h>
Binghua Duan02c981c2011-07-08 17:40:12 +080012#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
Barry Song951ec092014-02-18 14:46:31 +080018static void __init sirfsoc_init_late(void)
Shawn Guoa4b46742012-04-26 20:51:36 +080019{
20 sirfsoc_pm_init();
21}
22
Barry Songd4fe49e2013-03-18 15:04:38 +080023#ifdef CONFIG_ARCH_ATLAS6
Uwe Kleine-König543c5042015-02-18 21:01:45 +010024static const char *const atlas6_dt_match[] __initconst = {
Barry Songd4fe49e2013-03-18 15:04:38 +080025 "sirf,atlas6",
26 NULL
27};
28
29DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
30 /* Maintainer: Barry Song <baohua.song@csr.com> */
Russell King918197b2014-04-28 15:41:08 +010031 .l2c_aux_val = 0,
32 .l2c_aux_mask = ~0,
Barry Songd4fe49e2013-03-18 15:04:38 +080033 .init_late = sirfsoc_init_late,
34 .dt_compat = atlas6_dt_match,
Barry Songd4fe49e2013-03-18 15:04:38 +080035MACHINE_END
36#endif
37
Barry Songd0ec63f2012-08-23 13:41:57 +080038#ifdef CONFIG_ARCH_PRIMA2
Uwe Kleine-König543c5042015-02-18 21:01:45 +010039static const char *const prima2_dt_match[] __initconst = {
Barry Song5a0ec562013-03-05 11:00:43 +080040 "sirf,prima2",
41 NULL
Binghua Duan02c981c2011-07-08 17:40:12 +080042};
43
Barry Songd0ec63f2012-08-23 13:41:57 +080044DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
Binghua Duan02c981c2011-07-08 17:40:12 +080045 /* Maintainer: Barry Song <baohua.song@csr.com> */
Russell King918197b2014-04-28 15:41:08 +010046 .l2c_aux_val = 0,
47 .l2c_aux_mask = ~0,
Nicolas Pitre98b01242011-09-02 21:05:10 -040048 .dma_zone_size = SZ_256M,
Shawn Guoa4b46742012-04-26 20:51:36 +080049 .init_late = sirfsoc_init_late,
Barry Songd0ec63f2012-08-23 13:41:57 +080050 .dt_compat = prima2_dt_match,
Binghua Duan02c981c2011-07-08 17:40:12 +080051MACHINE_END
Barry Songd0ec63f2012-08-23 13:41:57 +080052#endif
Zhiwu Song4cba0582015-01-04 17:53:37 +080053
54#ifdef CONFIG_ARCH_ATLAS7
Uwe Kleine-König543c5042015-02-18 21:01:45 +010055static const char *const atlas7_dt_match[] __initconst = {
Zhiwu Song4cba0582015-01-04 17:53:37 +080056 "sirf,atlas7",
57 NULL
58};
59
60DT_MACHINE_START(ATLAS7_DT, "Generic ATLAS7 (Flattened Device Tree)")
61 /* Maintainer: Barry Song <baohua.song@csr.com> */
62 .smp = smp_ops(sirfsoc_smp_ops),
63 .dt_compat = atlas7_dt_match,
64MACHINE_END
65#endif