2019-05-27 06:55:08 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2011-10-17 00:42:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
|
|
|
|
* Copyright 2011 Linaro Ltd.
|
|
|
|
*/
|
|
|
|
|
2012-05-11 05:09:45 +00:00
|
|
|
#include <linux/clk.h>
|
|
|
|
#include <linux/clkdev.h>
|
|
|
|
#include <linux/err.h>
|
2011-10-17 00:42:16 +00: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 13:01:00 +00:00
|
|
|
#include "common.h"
|
2013-05-10 01:13:44 +00:00
|
|
|
#include "hardware.h"
|
2012-09-13 13:01:00 +00:00
|
|
|
|
2014-05-20 07:34:06 +00:00
|
|
|
static void __init imx53_init_early(void)
|
|
|
|
{
|
|
|
|
mxc_set_cpu_type(MXC_CPU_MX53);
|
|
|
|
}
|
|
|
|
|
2011-10-17 00:42:16 +00:00
|
|
|
static void __init imx53_dt_init(void)
|
|
|
|
{
|
2014-05-20 07:34:06 +00:00
|
|
|
imx_src_init();
|
2018-07-10 16:31:48 +00:00
|
|
|
imx5_pmu_init();
|
2014-07-07 09:41:27 +00:00
|
|
|
imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
|
2011-10-17 00:42:16 +00:00
|
|
|
}
|
|
|
|
|
2014-05-20 07:34:06 +00:00
|
|
|
static void __init imx53_init_late(void)
|
|
|
|
{
|
|
|
|
imx53_pm_init();
|
|
|
|
}
|
|
|
|
|
2014-07-01 08:03:00 +00:00
|
|
|
static const char * const imx53_dt_board_compat[] __initconst = {
|
2012-02-17 11:07:00 +00:00
|
|
|
"fsl,imx53",
|
2011-10-17 00:42:16 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(IMX53_DT, "Freescale i.MX53 (Device Tree Support)")
|
|
|
|
.init_early = imx53_init_early,
|
|
|
|
.init_machine = imx53_dt_init,
|
2012-05-21 22:50:27 +00:00
|
|
|
.init_late = imx53_init_late,
|
2011-10-17 00:42:16 +00:00
|
|
|
.dt_compat = imx53_dt_board_compat,
|
|
|
|
MACHINE_END
|