imx51-dt.c 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
 * Copyright 2011 Linaro Ltd.
 *
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */

#include <linux/irq.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>

19
#include "common.h"
20
#include "mx51.h"
21

22 23
static void __init imx51_dt_init(void)
{
24 25
	struct platform_device_info devinfo = { .name = "cpufreq-cpu0", };

26
	mxc_arch_reset_init_dt();
27

28
	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
29
	platform_device_register_full(&devinfo);
30 31
}

32
static const char *imx51_dt_board_compat[] __initconst = {
33
	"fsl,imx51",
34 35 36 37 38 39 40 41
	NULL
};

DT_MACHINE_START(IMX51_DT, "Freescale i.MX51 (Device Tree Support)")
	.map_io		= mx51_map_io,
	.init_early	= imx51_init_early,
	.init_irq	= mx51_init_irq,
	.init_machine	= imx51_dt_init,
42
	.init_late	= imx51_init_late,
43
	.dt_compat	= imx51_dt_board_compat,
44
	.restart	= mxc_restart,
45
MACHINE_END