diff options
Diffstat (limited to 'arch/arm/mach-prima2/common.c')
-rw-r--r-- | arch/arm/mach-prima2/common.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c new file mode 100644 index 000000000000..f25a54194639 --- /dev/null +++ b/arch/arm/mach-prima2/common.c | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * Defines machines for CSR SiRFprimaII | ||
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> | ||
11 | #include <asm/sizes.h> | ||
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 | |||
18 | static struct of_device_id sirfsoc_of_bus_ids[] __initdata = { | ||
19 | { .compatible = "simple-bus", }, | ||
20 | {}, | ||
21 | }; | ||
22 | |||
23 | void __init sirfsoc_mach_init(void) | ||
24 | { | ||
25 | of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL); | ||
26 | } | ||
27 | |||
28 | void __init sirfsoc_init_late(void) | ||
29 | { | ||
30 | sirfsoc_pm_init(); | ||
31 | } | ||
32 | |||
33 | #ifdef CONFIG_ARCH_PRIMA2 | ||
34 | static const char *prima2_dt_match[] __initdata = { | ||
35 | "sirf,prima2", | ||
36 | NULL | ||
37 | }; | ||
38 | |||
39 | DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)") | ||
40 | /* Maintainer: Barry Song <baohua.song@csr.com> */ | ||
41 | .map_io = sirfsoc_map_lluart, | ||
42 | .init_irq = sirfsoc_of_irq_init, | ||
43 | .timer = &sirfsoc_timer, | ||
44 | .dma_zone_size = SZ_256M, | ||
45 | .init_machine = sirfsoc_mach_init, | ||
46 | .init_late = sirfsoc_init_late, | ||
47 | .dt_compat = prima2_dt_match, | ||
48 | .restart = sirfsoc_restart, | ||
49 | MACHINE_END | ||
50 | #endif | ||