2011-10-17 07:42:16 +07: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-11 12:09:45 +07:00
|
|
|
#include <linux/clk.h>
|
|
|
|
#include <linux/clkdev.h>
|
|
|
|
#include <linux/err.h>
|
2011-10-17 07:42:16 +07: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 20:01:00 +07:00
|
|
|
#include "common.h"
|
2013-05-10 08:13:44 +07:00
|
|
|
#include "hardware.h"
|
2012-09-13 20:01:00 +07:00
|
|
|
|
2014-05-20 14:34:06 +07:00
|
|
|
static void __init imx53_init_early(void)
|
|
|
|
{
|
|
|
|
mxc_set_cpu_type(MXC_CPU_MX53);
|
|
|
|
}
|
|
|
|
|
2011-10-17 07:42:16 +07:00
|
|
|
static void __init imx53_dt_init(void)
|
|
|
|
{
|
2014-05-20 14:34:06 +07:00
|
|
|
imx_src_init();
|
2013-05-10 08:13:44 +07:00
|
|
|
|
2012-11-21 22:43:05 +07:00
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
2014-07-07 16:41:27 +07:00
|
|
|
|
|
|
|
imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
|
2011-10-17 07:42:16 +07:00
|
|
|
}
|
|
|
|
|
2014-05-20 14:34:06 +07:00
|
|
|
static void __init imx53_init_late(void)
|
|
|
|
{
|
|
|
|
imx53_pm_init();
|
2014-09-26 20:41:04 +07:00
|
|
|
|
|
|
|
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
|
2014-05-20 14:34:06 +07:00
|
|
|
}
|
|
|
|
|
2014-07-01 15:03:00 +07:00
|
|
|
static const char * const imx53_dt_board_compat[] __initconst = {
|
2012-02-17 18:07:00 +07:00
|
|
|
"fsl,imx53",
|
2011-10-17 07:42:16 +07:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(IMX53_DT, "Freescale i.MX53 (Device Tree Support)")
|
|
|
|
.init_early = imx53_init_early,
|
2014-05-19 19:19:06 +07:00
|
|
|
.init_irq = tzic_init_irq,
|
2011-10-17 07:42:16 +07:00
|
|
|
.init_machine = imx53_dt_init,
|
2012-05-22 05:50:27 +07:00
|
|
|
.init_late = imx53_init_late,
|
2011-10-17 07:42:16 +07:00
|
|
|
.dt_compat = imx53_dt_board_compat,
|
|
|
|
MACHINE_END
|