blob: e2d158e331e28de4600e66c8171160cdec69ac27 [file] [log] [blame]
Thomas Gleixnera636cd62019-05-19 15:51:34 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Binghua Duan02c981c2011-07-08 17:40:12 +08002/*
Barry Song013dd122011-09-22 22:51:30 -07003 * Defines machines for CSR SiRFprimaII
Binghua Duan02c981c2011-07-08 17:40:12 +08004 *
5 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
Binghua Duan02c981c2011-07-08 17:40:12 +08006 */
7
8#include <linux/init.h>
9#include <linux/kernel.h>
Masahiro Yamada87dfb312019-05-14 15:46:51 -070010#include <linux/sizes.h>
Binghua Duan02c981c2011-07-08 17:40:12 +080011#include <asm/mach-types.h>
12#include <asm/mach/arch.h>
13#include <linux/of.h>
14#include <linux/of_platform.h>
15#include "common.h"
16
Arnd Bergmannc1ae3f72015-12-29 14:40:00 +010017static void __init __maybe_unused sirfsoc_init_late(void)
Shawn Guoa4b46742012-04-26 20:51:36 +080018{
19 sirfsoc_pm_init();
20}
21
Barry Songd4fe49e2013-03-18 15:04:38 +080022#ifdef CONFIG_ARCH_ATLAS6
Uwe Kleine-König543c5042015-02-18 21:01:45 +010023static const char *const atlas6_dt_match[] __initconst = {
Barry Songd4fe49e2013-03-18 15:04:38 +080024 "sirf,atlas6",
25 NULL
26};
27
28DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
29 /* Maintainer: Barry Song <baohua.song@csr.com> */
Russell King918197b2014-04-28 15:41:08 +010030 .l2c_aux_val = 0,
31 .l2c_aux_mask = ~0,
Barry Songd4fe49e2013-03-18 15:04:38 +080032 .init_late = sirfsoc_init_late,
33 .dt_compat = atlas6_dt_match,
Barry Songd4fe49e2013-03-18 15:04:38 +080034MACHINE_END
35#endif
36
Barry Songd0ec63f2012-08-23 13:41:57 +080037#ifdef CONFIG_ARCH_PRIMA2
Uwe Kleine-König543c5042015-02-18 21:01:45 +010038static const char *const prima2_dt_match[] __initconst = {
Barry Song5a0ec562013-03-05 11:00:43 +080039 "sirf,prima2",
40 NULL
Binghua Duan02c981c2011-07-08 17:40:12 +080041};
42
Barry Songd0ec63f2012-08-23 13:41:57 +080043DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
Binghua Duan02c981c2011-07-08 17:40:12 +080044 /* Maintainer: Barry Song <baohua.song@csr.com> */
Russell King918197b2014-04-28 15:41:08 +010045 .l2c_aux_val = 0,
46 .l2c_aux_mask = ~0,
Nicolas Pitre98b01242011-09-02 21:05:10 -040047 .dma_zone_size = SZ_256M,
Shawn Guoa4b46742012-04-26 20:51:36 +080048 .init_late = sirfsoc_init_late,
Barry Songd0ec63f2012-08-23 13:41:57 +080049 .dt_compat = prima2_dt_match,
Binghua Duan02c981c2011-07-08 17:40:12 +080050MACHINE_END
Barry Songd0ec63f2012-08-23 13:41:57 +080051#endif
Zhiwu Song4cba0582015-01-04 17:53:37 +080052
53#ifdef CONFIG_ARCH_ATLAS7
Uwe Kleine-König543c5042015-02-18 21:01:45 +010054static const char *const atlas7_dt_match[] __initconst = {
Zhiwu Song4cba0582015-01-04 17:53:37 +080055 "sirf,atlas7",
56 NULL
57};
58
59DT_MACHINE_START(ATLAS7_DT, "Generic ATLAS7 (Flattened Device Tree)")
60 /* Maintainer: Barry Song <baohua.song@csr.com> */
61 .smp = smp_ops(sirfsoc_smp_ops),
62 .dt_compat = atlas7_dt_match,
63MACHINE_END
64#endif