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 | |
| 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 | |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame^] | 28 | void __init sirfsoc_init_late(void) |
| 29 | { |
| 30 | sirfsoc_pm_init(); |
| 31 | } |
| 32 | |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 33 | static const char *prima2cb_dt_match[] __initdata = { |
| 34 | "sirf,prima2-cb", |
| 35 | NULL |
| 36 | }; |
| 37 | |
| 38 | MACHINE_START(PRIMA2_EVB, "prima2cb") |
| 39 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
Nicolas Pitre | 0cc9311 | 2011-07-05 22:38:18 -0400 | [diff] [blame] | 40 | .atag_offset = 0x100, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 41 | .init_early = sirfsoc_of_clk_init, |
Barry Song | 31adb06 | 2011-07-08 02:40:13 -0700 | [diff] [blame] | 42 | .map_io = sirfsoc_map_lluart, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 43 | .init_irq = sirfsoc_of_irq_init, |
| 44 | .timer = &sirfsoc_timer, |
Nicolas Pitre | 98b0124 | 2011-09-02 21:05:10 -0400 | [diff] [blame] | 45 | .dma_zone_size = SZ_256M, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 46 | .init_machine = sirfsoc_mach_init, |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame^] | 47 | .init_late = sirfsoc_init_late, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 48 | .dt_compat = prima2cb_dt_match, |
Russell King | 125c403 | 2011-11-05 10:23:27 +0000 | [diff] [blame] | 49 | .restart = sirfsoc_restart, |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 50 | MACHINE_END |