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