blob: 5c920bde679111ff3fc7a0625c71617bf6383f9b [file] [log] [blame]
Christian Daudt8ac49e02012-11-19 09:46:10 -08001/*
2 * Copyright (C) 2012 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
7 *
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Christian Daudt8ac49e02012-11-19 09:46:10 -080014#include <linux/of_platform.h>
15#include <linux/init.h>
16#include <linux/device.h>
17#include <linux/platform_device.h>
Rob Herring0529e3152012-11-05 16:18:28 -060018#include <linux/irqchip.h>
Christian Daudt8ac49e02012-11-19 09:46:10 -080019
20#include <asm/mach/arch.h>
Christian Daudt8ac49e02012-11-19 09:46:10 -080021#include <asm/mach/time.h>
22
Christian Daudt8ac49e02012-11-19 09:46:10 -080023static void timer_init(void)
24{
25}
26
27static struct sys_timer timer = {
28 .init = timer_init,
29};
30
Christian Daudt8ac49e02012-11-19 09:46:10 -080031static void __init board_init(void)
32{
33 of_platform_populate(NULL, of_default_bus_match_table, NULL,
34 &platform_bus);
35}
36
37static const char * const bcm11351_dt_compat[] = { "bcm,bcm11351", NULL, };
38
39DT_MACHINE_START(BCM11351_DT, "Broadcom Application Processor")
Rob Herring0529e3152012-11-05 16:18:28 -060040 .init_irq = irqchip_init,
Christian Daudt8ac49e02012-11-19 09:46:10 -080041 .timer = &timer,
42 .init_machine = board_init,
43 .dt_compat = bcm11351_dt_compat,
Christian Daudt8ac49e02012-11-19 09:46:10 -080044MACHINE_END