Thomas Gleixner | a636cd6 | 2019-05-19 15:51:34 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 2 | /* |
Barry Song | 013dd12 | 2011-09-22 22:51:30 -0700 | [diff] [blame] | 3 | * Defines machines for CSR SiRFprimaII |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 4 | * |
| 5 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <linux/init.h> |
| 9 | #include <linux/kernel.h> |
Masahiro Yamada | 87dfb31 | 2019-05-14 15:46:51 -0700 | [diff] [blame] | 10 | #include <linux/sizes.h> |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 11 | #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 Bergmann | c1ae3f7 | 2015-12-29 14:40:00 +0100 | [diff] [blame] | 17 | static void __init __maybe_unused sirfsoc_init_late(void) |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame] | 18 | { |
| 19 | sirfsoc_pm_init(); |
| 20 | } |
| 21 | |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 22 | #ifdef CONFIG_ARCH_ATLAS6 |
Uwe Kleine-König | 543c504 | 2015-02-18 21:01:45 +0100 | [diff] [blame] | 23 | static const char *const atlas6_dt_match[] __initconst = { |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 24 | "sirf,atlas6", |
| 25 | NULL |
| 26 | }; |
| 27 | |
| 28 | DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)") |
| 29 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
Russell King | 918197b | 2014-04-28 15:41:08 +0100 | [diff] [blame] | 30 | .l2c_aux_val = 0, |
| 31 | .l2c_aux_mask = ~0, |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 32 | .init_late = sirfsoc_init_late, |
| 33 | .dt_compat = atlas6_dt_match, |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 34 | MACHINE_END |
| 35 | #endif |
| 36 | |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 37 | #ifdef CONFIG_ARCH_PRIMA2 |
Uwe Kleine-König | 543c504 | 2015-02-18 21:01:45 +0100 | [diff] [blame] | 38 | static const char *const prima2_dt_match[] __initconst = { |
Barry Song | 5a0ec56 | 2013-03-05 11:00:43 +0800 | [diff] [blame] | 39 | "sirf,prima2", |
| 40 | NULL |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 41 | }; |
| 42 | |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 43 | DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)") |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 44 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
Russell King | 918197b | 2014-04-28 15:41:08 +0100 | [diff] [blame] | 45 | .l2c_aux_val = 0, |
| 46 | .l2c_aux_mask = ~0, |
Nicolas Pitre | 98b0124 | 2011-09-02 21:05:10 -0400 | [diff] [blame] | 47 | .dma_zone_size = SZ_256M, |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame] | 48 | .init_late = sirfsoc_init_late, |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 49 | .dt_compat = prima2_dt_match, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 50 | MACHINE_END |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 51 | #endif |
Zhiwu Song | 4cba058 | 2015-01-04 17:53:37 +0800 | [diff] [blame] | 52 | |
| 53 | #ifdef CONFIG_ARCH_ATLAS7 |
Uwe Kleine-König | 543c504 | 2015-02-18 21:01:45 +0100 | [diff] [blame] | 54 | static const char *const atlas7_dt_match[] __initconst = { |
Zhiwu Song | 4cba058 | 2015-01-04 17:53:37 +0800 | [diff] [blame] | 55 | "sirf,atlas7", |
| 56 | NULL |
| 57 | }; |
| 58 | |
| 59 | DT_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, |
| 63 | MACHINE_END |
| 64 | #endif |