blob: f25a5419463966d3b046812d9a7155b9b686f696 [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
Barry Song013dd122011-09-22 22:51:30 -07002 * Defines machines for CSR SiRFprimaII
Binghua Duan02c981c2011-07-08 17:40:12 +08003 *
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 Song1bdfd27a2011-11-17 22:18:14 +080011#include <asm/sizes.h>
Binghua Duan02c981c2011-07-08 17:40:12 +080012#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
18static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
19 { .compatible = "simple-bus", },
20 {},
21};
22
23void __init sirfsoc_mach_init(void)
24{
25 of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL);
26}
27
Shawn Guoa4b46742012-04-26 20:51:36 +080028void __init sirfsoc_init_late(void)
29{
30 sirfsoc_pm_init();
31}
32
Barry Songd0ec63f2012-08-23 13:41:57 +080033#ifdef CONFIG_ARCH_PRIMA2
34static const char *prima2_dt_match[] __initdata = {
35 "sirf,prima2",
Binghua Duan02c981c2011-07-08 17:40:12 +080036 NULL
37};
38
Barry Songd0ec63f2012-08-23 13:41:57 +080039DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
Binghua Duan02c981c2011-07-08 17:40:12 +080040 /* Maintainer: Barry Song <baohua.song@csr.com> */
Barry Song31adb062011-07-08 02:40:13 -070041 .map_io = sirfsoc_map_lluart,
Binghua Duan02c981c2011-07-08 17:40:12 +080042 .init_irq = sirfsoc_of_irq_init,
43 .timer = &sirfsoc_timer,
Nicolas Pitre98b01242011-09-02 21:05:10 -040044 .dma_zone_size = SZ_256M,
Binghua Duan02c981c2011-07-08 17:40:12 +080045 .init_machine = sirfsoc_mach_init,
Shawn Guoa4b46742012-04-26 20:51:36 +080046 .init_late = sirfsoc_init_late,
Barry Songd0ec63f2012-08-23 13:41:57 +080047 .dt_compat = prima2_dt_match,
Russell King125c4032011-11-05 10:23:27 +000048 .restart = sirfsoc_restart,
Binghua Duan02c981c2011-07-08 17:40:12 +080049MACHINE_END
Barry Songd0ec63f2012-08-23 13:41:57 +080050#endif