board-lager-reference.c 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*
 * Lager board support - Reference DT implementation
 *
 * Copyright (C) 2013  Renesas Solutions Corp.
 * Copyright (C) 2013  Simon Horman
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <linux/init.h>
#include <linux/of_platform.h>
23
#include <mach/common.h>
24
#include <mach/rcar-gen2.h>
25 26 27
#include <mach/r8a7790.h>
#include <asm/mach/arch.h>

28
static void __init lager_add_standard_devices(void)
29 30 31
{
	r8a7790_clock_init();
	r8a7790_add_dt_devices();
32
	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
33 34 35 36 37 38 39 40
}

static const char *lager_boards_compat_dt[] __initdata = {
	"renesas,lager-reference",
	NULL,
};

DT_MACHINE_START(LAGER_DT, "lager")
41
	.smp		= smp_ops(r8a7790_smp_ops),
42
	.init_early	= r8a7790_init_early,
43
	.init_time	= rcar_gen2_timer_init,
44
	.init_machine	= lager_add_standard_devices,
45
	.init_late	= shmobile_init_late,
46 47
	.dt_compat	= lager_boards_compat_dt,
MACHINE_END