MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / mach-prima2 / prima2.c
blobef555c041962983814be50c03d606b91bcd15b0d
1 /*
2 * Defines machines for CSR SiRFprimaII
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
7 */
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"
17 static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
18 { .compatible = "simple-bus", },
19 {},
22 void __init sirfsoc_mach_init(void)
24 of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL);
27 static const char *prima2cb_dt_match[] __initdata = {
28 "sirf,prima2-cb",
29 NULL
32 MACHINE_START(PRIMA2_EVB, "prima2cb")
33 /* Maintainer: Barry Song <baohua.song@csr.com> */
34 .atag_offset = 0x100,
35 .init_early = sirfsoc_of_clk_init,
36 .map_io = sirfsoc_map_lluart,
37 .init_irq = sirfsoc_of_irq_init,
38 .timer = &sirfsoc_timer,
39 .dma_zone_size = SZ_256M,
40 .init_machine = sirfsoc_mach_init,
41 .dt_compat = prima2cb_dt_match,
42 MACHINE_END