2011-10-16 18:42:16 -06:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2012-05-10 23:09:45 -06:00
|
|
|
#include <linux/clk.h>
|
|
|
|
#include <linux/clkdev.h>
|
|
|
|
#include <linux/err.h>
|
2011-10-16 18:42:16 -06:00
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <linux/of_irq.h>
|
|
|
|
#include <linux/of_platform.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach/time.h>
|
|
|
|
|
2012-09-13 07:01:00 -06:00
|
|
|
#include "common.h"
|
2013-05-09 19:13:44 -06:00
|
|
|
#include "hardware.h"
|
2012-09-14 00:14:45 -06:00
|
|
|
#include "mx53.h"
|
2012-09-13 07:01:00 -06:00
|
|
|
|
2011-10-16 18:42:16 -06:00
|
|
|
static void __init imx53_dt_init(void)
|
|
|
|
{
|
2013-05-09 20:19:01 -06:00
|
|
|
mxc_arch_reset_init_dt();
|
2013-05-09 19:13:44 -06:00
|
|
|
|
2012-11-21 08:43:05 -07:00
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
2011-10-16 18:42:16 -06:00
|
|
|
}
|
|
|
|
|
2013-12-08 23:04:35 -07:00
|
|
|
static const char *imx53_dt_board_compat[] __initconst = {
|
2012-02-17 04:07:00 -07:00
|
|
|
"fsl,imx53",
|
2011-10-16 18:42:16 -06:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(IMX53_DT, "Freescale i.MX53 (Device Tree Support)")
|
|
|
|
.map_io = mx53_map_io,
|
|
|
|
.init_early = imx53_init_early,
|
|
|
|
.init_irq = mx53_init_irq,
|
|
|
|
.init_machine = imx53_dt_init,
|
2012-05-21 16:50:27 -06:00
|
|
|
.init_late = imx53_init_late,
|
2011-10-16 18:42:16 -06:00
|
|
|
.dt_compat = imx53_dt_board_compat,
|
2011-11-06 10:12:08 -07:00
|
|
|
.restart = mxc_restart,
|
2011-10-16 18:42:16 -06:00
|
|
|
MACHINE_END
|