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 | |
Barry Song | 951ec09 | 2014-02-18 14:46:31 +0800 | [diff] [blame] | 18 | static void __init 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 | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 23 | static __init void sirfsoc_map_io(void) |
| 24 | { |
| 25 | sirfsoc_map_lluart(); |
| 26 | sirfsoc_map_scu(); |
| 27 | } |
| 28 | |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 29 | #ifdef CONFIG_ARCH_ATLAS6 |
Barry Song | 8ccf166 | 2014-02-18 14:46:29 +0800 | [diff] [blame] | 30 | static const char *atlas6_dt_match[] __initconst = { |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 31 | "sirf,atlas6", |
| 32 | NULL |
| 33 | }; |
| 34 | |
| 35 | DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)") |
| 36 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
| 37 | .map_io = sirfsoc_map_io, |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 38 | .init_late = sirfsoc_init_late, |
| 39 | .dt_compat = atlas6_dt_match, |
Barry Song | d4fe49e | 2013-03-18 15:04:38 +0800 | [diff] [blame] | 40 | MACHINE_END |
| 41 | #endif |
| 42 | |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 43 | #ifdef CONFIG_ARCH_PRIMA2 |
Barry Song | 8ccf166 | 2014-02-18 14:46:29 +0800 | [diff] [blame] | 44 | static const char *prima2_dt_match[] __initconst = { |
Barry Song | 5a0ec56 | 2013-03-05 11:00:43 +0800 | [diff] [blame] | 45 | "sirf,prima2", |
| 46 | NULL |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 47 | }; |
| 48 | |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 49 | DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)") |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 50 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 51 | .map_io = sirfsoc_map_io, |
Nicolas Pitre | 98b0124 | 2011-09-02 21:05:10 -0400 | [diff] [blame] | 52 | .dma_zone_size = SZ_256M, |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame] | 53 | .init_late = sirfsoc_init_late, |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 54 | .dt_compat = prima2_dt_match, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 55 | MACHINE_END |
Barry Song | d0ec63f | 2012-08-23 13:41:57 +0800 | [diff] [blame] | 56 | #endif |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 57 | |
| 58 | #ifdef CONFIG_ARCH_MARCO |
Barry Song | 8ccf166 | 2014-02-18 14:46:29 +0800 | [diff] [blame] | 59 | static const char *marco_dt_match[] __initconst = { |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 60 | "sirf,marco", |
| 61 | NULL |
| 62 | }; |
| 63 | |
| 64 | DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)") |
| 65 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
| 66 | .smp = smp_ops(sirfsoc_smp_ops), |
| 67 | .map_io = sirfsoc_map_io, |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 68 | .init_late = sirfsoc_init_late, |
| 69 | .dt_compat = marco_dt_match, |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 70 | MACHINE_END |
| 71 | #endif |