blob: ee33c3d458f5ba06794d0f240b24a564619a218e [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
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/mach-types.h>
12#include <asm/mach/arch.h>
13#include <linux/of.h>
14#include <linux/of_platform.h>
15#include "common.h"
16
17static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
18 { .compatible = "simple-bus", },
19 {},
20};
21
22void __init sirfsoc_mach_init(void)
23{
24 of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL);
25}
26
27static const char *prima2cb_dt_match[] __initdata = {
28 "sirf,prima2-cb",
29 NULL
30};
31
32MACHINE_START(PRIMA2_EVB, "prima2cb")
33 /* Maintainer: Barry Song <baohua.song@csr.com> */
Nicolas Pitre0cc93112011-07-05 22:38:18 -040034 .atag_offset = 0x100,
Binghua Duan02c981c2011-07-08 17:40:12 +080035 .init_early = sirfsoc_of_clk_init,
Barry Song31adb062011-07-08 02:40:13 -070036 .map_io = sirfsoc_map_lluart,
Binghua Duan02c981c2011-07-08 17:40:12 +080037 .init_irq = sirfsoc_of_irq_init,
38 .timer = &sirfsoc_timer,
Nicolas Pitre98b01242011-09-02 21:05:10 -040039 .dma_zone_size = SZ_256M,
Binghua Duan02c981c2011-07-08 17:40:12 +080040 .init_machine = sirfsoc_mach_init,
41 .dt_compat = prima2cb_dt_match,
42MACHINE_END