18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2011-2013 Freescale Semiconductor, Inc.
48c2ecf20Sopenharmony_ci * Copyright 2011 Linaro Ltd.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/clk.h>
88c2ecf20Sopenharmony_ci#include <linux/irqchip.h>
98c2ecf20Sopenharmony_ci#include <linux/of_platform.h>
108c2ecf20Sopenharmony_ci#include <linux/pci.h>
118c2ecf20Sopenharmony_ci#include <linux/phy.h>
128c2ecf20Sopenharmony_ci#include <linux/regmap.h>
138c2ecf20Sopenharmony_ci#include <linux/micrel_phy.h>
148c2ecf20Sopenharmony_ci#include <linux/mfd/syscon.h>
158c2ecf20Sopenharmony_ci#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
168c2ecf20Sopenharmony_ci#include <asm/mach/arch.h>
178c2ecf20Sopenharmony_ci#include <asm/mach/map.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#include "common.h"
208c2ecf20Sopenharmony_ci#include "cpuidle.h"
218c2ecf20Sopenharmony_ci#include "hardware.h"
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* For imx6q sabrelite board: set KSZ9021RN RGMII pad skew */
248c2ecf20Sopenharmony_cistatic int ksz9021rn_phy_fixup(struct phy_device *phydev)
258c2ecf20Sopenharmony_ci{
268c2ecf20Sopenharmony_ci	if (IS_BUILTIN(CONFIG_PHYLIB)) {
278c2ecf20Sopenharmony_ci		/* min rx data delay */
288c2ecf20Sopenharmony_ci		phy_write(phydev, MICREL_KSZ9021_EXTREG_CTRL,
298c2ecf20Sopenharmony_ci			0x8000 | MICREL_KSZ9021_RGMII_RX_DATA_PAD_SCEW);
308c2ecf20Sopenharmony_ci		phy_write(phydev, MICREL_KSZ9021_EXTREG_DATA_WRITE, 0x0000);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci		/* max rx/tx clock delay, min rx/tx control delay */
338c2ecf20Sopenharmony_ci		phy_write(phydev, MICREL_KSZ9021_EXTREG_CTRL,
348c2ecf20Sopenharmony_ci			0x8000 | MICREL_KSZ9021_RGMII_CLK_CTRL_PAD_SCEW);
358c2ecf20Sopenharmony_ci		phy_write(phydev, MICREL_KSZ9021_EXTREG_DATA_WRITE, 0xf0f0);
368c2ecf20Sopenharmony_ci		phy_write(phydev, MICREL_KSZ9021_EXTREG_CTRL,
378c2ecf20Sopenharmony_ci			MICREL_KSZ9021_RGMII_CLK_CTRL_PAD_SCEW);
388c2ecf20Sopenharmony_ci	}
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	return 0;
418c2ecf20Sopenharmony_ci}
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cistatic void mmd_write_reg(struct phy_device *dev, int device, int reg, int val)
448c2ecf20Sopenharmony_ci{
458c2ecf20Sopenharmony_ci	phy_write(dev, 0x0d, device);
468c2ecf20Sopenharmony_ci	phy_write(dev, 0x0e, reg);
478c2ecf20Sopenharmony_ci	phy_write(dev, 0x0d, (1 << 14) | device);
488c2ecf20Sopenharmony_ci	phy_write(dev, 0x0e, val);
498c2ecf20Sopenharmony_ci}
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cistatic int ksz9031rn_phy_fixup(struct phy_device *dev)
528c2ecf20Sopenharmony_ci{
538c2ecf20Sopenharmony_ci	/*
548c2ecf20Sopenharmony_ci	 * min rx data delay, max rx/tx clock delay,
558c2ecf20Sopenharmony_ci	 * min rx/tx control delay
568c2ecf20Sopenharmony_ci	 */
578c2ecf20Sopenharmony_ci	mmd_write_reg(dev, 2, 4, 0);
588c2ecf20Sopenharmony_ci	mmd_write_reg(dev, 2, 5, 0);
598c2ecf20Sopenharmony_ci	mmd_write_reg(dev, 2, 8, 0x003ff);
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci	return 0;
628c2ecf20Sopenharmony_ci}
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/*
658c2ecf20Sopenharmony_ci * fixup for PLX PEX8909 bridge to configure GPIO1-7 as output High
668c2ecf20Sopenharmony_ci * as they are used for slots1-7 PERST#
678c2ecf20Sopenharmony_ci */
688c2ecf20Sopenharmony_cistatic void ventana_pciesw_early_fixup(struct pci_dev *dev)
698c2ecf20Sopenharmony_ci{
708c2ecf20Sopenharmony_ci	u32 dw;
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci	if (!of_machine_is_compatible("gw,ventana"))
738c2ecf20Sopenharmony_ci		return;
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci	if (dev->devfn != 0)
768c2ecf20Sopenharmony_ci		return;
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci	pci_read_config_dword(dev, 0x62c, &dw);
798c2ecf20Sopenharmony_ci	dw |= 0xaaa8; // GPIO1-7 outputs
808c2ecf20Sopenharmony_ci	pci_write_config_dword(dev, 0x62c, dw);
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci	pci_read_config_dword(dev, 0x644, &dw);
838c2ecf20Sopenharmony_ci	dw |= 0xfe;   // GPIO1-7 output high
848c2ecf20Sopenharmony_ci	pci_write_config_dword(dev, 0x644, dw);
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci	msleep(100);
878c2ecf20Sopenharmony_ci}
888c2ecf20Sopenharmony_ciDECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8609, ventana_pciesw_early_fixup);
898c2ecf20Sopenharmony_ciDECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8606, ventana_pciesw_early_fixup);
908c2ecf20Sopenharmony_ciDECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8604, ventana_pciesw_early_fixup);
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_cistatic int ar8031_phy_fixup(struct phy_device *dev)
938c2ecf20Sopenharmony_ci{
948c2ecf20Sopenharmony_ci	u16 val;
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci	/* To enable AR8031 output a 125MHz clk from CLK_25M */
978c2ecf20Sopenharmony_ci	phy_write(dev, 0xd, 0x7);
988c2ecf20Sopenharmony_ci	phy_write(dev, 0xe, 0x8016);
998c2ecf20Sopenharmony_ci	phy_write(dev, 0xd, 0x4007);
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci	val = phy_read(dev, 0xe);
1028c2ecf20Sopenharmony_ci	val &= 0xffe3;
1038c2ecf20Sopenharmony_ci	val |= 0x18;
1048c2ecf20Sopenharmony_ci	phy_write(dev, 0xe, val);
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci	/* introduce tx clock delay */
1078c2ecf20Sopenharmony_ci	phy_write(dev, 0x1d, 0x5);
1088c2ecf20Sopenharmony_ci	val = phy_read(dev, 0x1e);
1098c2ecf20Sopenharmony_ci	val |= 0x0100;
1108c2ecf20Sopenharmony_ci	phy_write(dev, 0x1e, val);
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	return 0;
1138c2ecf20Sopenharmony_ci}
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci#define PHY_ID_AR8031	0x004dd074
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_cistatic int ar8035_phy_fixup(struct phy_device *dev)
1188c2ecf20Sopenharmony_ci{
1198c2ecf20Sopenharmony_ci	u16 val;
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci	/* Ar803x phy SmartEEE feature cause link status generates glitch,
1228c2ecf20Sopenharmony_ci	 * which cause ethernet link down/up issue, so disable SmartEEE
1238c2ecf20Sopenharmony_ci	 */
1248c2ecf20Sopenharmony_ci	phy_write(dev, 0xd, 0x3);
1258c2ecf20Sopenharmony_ci	phy_write(dev, 0xe, 0x805d);
1268c2ecf20Sopenharmony_ci	phy_write(dev, 0xd, 0x4003);
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci	val = phy_read(dev, 0xe);
1298c2ecf20Sopenharmony_ci	phy_write(dev, 0xe, val & ~(1 << 8));
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci	/*
1328c2ecf20Sopenharmony_ci	 * Enable 125MHz clock from CLK_25M on the AR8031.  This
1338c2ecf20Sopenharmony_ci	 * is fed in to the IMX6 on the ENET_REF_CLK (V22) pad.
1348c2ecf20Sopenharmony_ci	 * Also, introduce a tx clock delay.
1358c2ecf20Sopenharmony_ci	 *
1368c2ecf20Sopenharmony_ci	 * This is the same as is the AR8031 fixup.
1378c2ecf20Sopenharmony_ci	 */
1388c2ecf20Sopenharmony_ci	ar8031_phy_fixup(dev);
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci	/*check phy power*/
1418c2ecf20Sopenharmony_ci	val = phy_read(dev, 0x0);
1428c2ecf20Sopenharmony_ci	if (val & BMCR_PDOWN)
1438c2ecf20Sopenharmony_ci		phy_write(dev, 0x0, val & ~BMCR_PDOWN);
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci	return 0;
1468c2ecf20Sopenharmony_ci}
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define PHY_ID_AR8035 0x004dd072
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_cistatic void __init imx6q_enet_phy_init(void)
1518c2ecf20Sopenharmony_ci{
1528c2ecf20Sopenharmony_ci	if (IS_BUILTIN(CONFIG_PHYLIB)) {
1538c2ecf20Sopenharmony_ci		phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
1548c2ecf20Sopenharmony_ci				ksz9021rn_phy_fixup);
1558c2ecf20Sopenharmony_ci		phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK,
1568c2ecf20Sopenharmony_ci				ksz9031rn_phy_fixup);
1578c2ecf20Sopenharmony_ci		phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffef,
1588c2ecf20Sopenharmony_ci				ar8031_phy_fixup);
1598c2ecf20Sopenharmony_ci		phy_register_fixup_for_uid(PHY_ID_AR8035, 0xffffffef,
1608c2ecf20Sopenharmony_ci				ar8035_phy_fixup);
1618c2ecf20Sopenharmony_ci	}
1628c2ecf20Sopenharmony_ci}
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_cistatic void __init imx6q_1588_init(void)
1658c2ecf20Sopenharmony_ci{
1668c2ecf20Sopenharmony_ci	struct device_node *np;
1678c2ecf20Sopenharmony_ci	struct clk *ptp_clk;
1688c2ecf20Sopenharmony_ci	struct clk *enet_ref;
1698c2ecf20Sopenharmony_ci	struct regmap *gpr;
1708c2ecf20Sopenharmony_ci	u32 clksel;
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ci	np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-fec");
1738c2ecf20Sopenharmony_ci	if (!np) {
1748c2ecf20Sopenharmony_ci		pr_warn("%s: failed to find fec node\n", __func__);
1758c2ecf20Sopenharmony_ci		return;
1768c2ecf20Sopenharmony_ci	}
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci	ptp_clk = of_clk_get(np, 2);
1798c2ecf20Sopenharmony_ci	if (IS_ERR(ptp_clk)) {
1808c2ecf20Sopenharmony_ci		pr_warn("%s: failed to get ptp clock\n", __func__);
1818c2ecf20Sopenharmony_ci		goto put_node;
1828c2ecf20Sopenharmony_ci	}
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ci	enet_ref = clk_get_sys(NULL, "enet_ref");
1858c2ecf20Sopenharmony_ci	if (IS_ERR(enet_ref)) {
1868c2ecf20Sopenharmony_ci		pr_warn("%s: failed to get enet clock\n", __func__);
1878c2ecf20Sopenharmony_ci		goto put_ptp_clk;
1888c2ecf20Sopenharmony_ci	}
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci	/*
1918c2ecf20Sopenharmony_ci	 * If enet_ref from ANATOP/CCM is the PTP clock source, we need to
1928c2ecf20Sopenharmony_ci	 * set bit IOMUXC_GPR1[21].  Or the PTP clock must be from pad
1938c2ecf20Sopenharmony_ci	 * (external OSC), and we need to clear the bit.
1948c2ecf20Sopenharmony_ci	 */
1958c2ecf20Sopenharmony_ci	clksel = clk_is_match(ptp_clk, enet_ref) ?
1968c2ecf20Sopenharmony_ci				IMX6Q_GPR1_ENET_CLK_SEL_ANATOP :
1978c2ecf20Sopenharmony_ci				IMX6Q_GPR1_ENET_CLK_SEL_PAD;
1988c2ecf20Sopenharmony_ci	gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr");
1998c2ecf20Sopenharmony_ci	if (!IS_ERR(gpr))
2008c2ecf20Sopenharmony_ci		regmap_update_bits(gpr, IOMUXC_GPR1,
2018c2ecf20Sopenharmony_ci				IMX6Q_GPR1_ENET_CLK_SEL_MASK,
2028c2ecf20Sopenharmony_ci				clksel);
2038c2ecf20Sopenharmony_ci	else
2048c2ecf20Sopenharmony_ci		pr_err("failed to find fsl,imx6q-iomuxc-gpr regmap\n");
2058c2ecf20Sopenharmony_ci
2068c2ecf20Sopenharmony_ci	clk_put(enet_ref);
2078c2ecf20Sopenharmony_ciput_ptp_clk:
2088c2ecf20Sopenharmony_ci	clk_put(ptp_clk);
2098c2ecf20Sopenharmony_ciput_node:
2108c2ecf20Sopenharmony_ci	of_node_put(np);
2118c2ecf20Sopenharmony_ci}
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_cistatic void __init imx6q_axi_init(void)
2148c2ecf20Sopenharmony_ci{
2158c2ecf20Sopenharmony_ci	struct regmap *gpr;
2168c2ecf20Sopenharmony_ci	unsigned int mask;
2178c2ecf20Sopenharmony_ci
2188c2ecf20Sopenharmony_ci	gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr");
2198c2ecf20Sopenharmony_ci	if (!IS_ERR(gpr)) {
2208c2ecf20Sopenharmony_ci		/*
2218c2ecf20Sopenharmony_ci		 * Enable the cacheable attribute of VPU and IPU
2228c2ecf20Sopenharmony_ci		 * AXI transactions.
2238c2ecf20Sopenharmony_ci		 */
2248c2ecf20Sopenharmony_ci		mask = IMX6Q_GPR4_VPU_WR_CACHE_SEL |
2258c2ecf20Sopenharmony_ci			IMX6Q_GPR4_VPU_RD_CACHE_SEL |
2268c2ecf20Sopenharmony_ci			IMX6Q_GPR4_VPU_P_WR_CACHE_VAL |
2278c2ecf20Sopenharmony_ci			IMX6Q_GPR4_VPU_P_RD_CACHE_VAL_MASK |
2288c2ecf20Sopenharmony_ci			IMX6Q_GPR4_IPU_WR_CACHE_CTL |
2298c2ecf20Sopenharmony_ci			IMX6Q_GPR4_IPU_RD_CACHE_CTL;
2308c2ecf20Sopenharmony_ci		regmap_update_bits(gpr, IOMUXC_GPR4, mask, mask);
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci		/* Increase IPU read QoS priority */
2338c2ecf20Sopenharmony_ci		regmap_update_bits(gpr, IOMUXC_GPR6,
2348c2ecf20Sopenharmony_ci				IMX6Q_GPR6_IPU1_ID00_RD_QOS_MASK |
2358c2ecf20Sopenharmony_ci				IMX6Q_GPR6_IPU1_ID01_RD_QOS_MASK,
2368c2ecf20Sopenharmony_ci				(0xf << 16) | (0x7 << 20));
2378c2ecf20Sopenharmony_ci		regmap_update_bits(gpr, IOMUXC_GPR7,
2388c2ecf20Sopenharmony_ci				IMX6Q_GPR7_IPU2_ID00_RD_QOS_MASK |
2398c2ecf20Sopenharmony_ci				IMX6Q_GPR7_IPU2_ID01_RD_QOS_MASK,
2408c2ecf20Sopenharmony_ci				(0xf << 16) | (0x7 << 20));
2418c2ecf20Sopenharmony_ci	} else {
2428c2ecf20Sopenharmony_ci		pr_warn("failed to find fsl,imx6q-iomuxc-gpr regmap\n");
2438c2ecf20Sopenharmony_ci	}
2448c2ecf20Sopenharmony_ci}
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_cistatic void __init imx6q_init_machine(void)
2478c2ecf20Sopenharmony_ci{
2488c2ecf20Sopenharmony_ci	if (cpu_is_imx6q() && imx_get_soc_revision() == IMX_CHIP_REVISION_2_0)
2498c2ecf20Sopenharmony_ci		imx_print_silicon_rev("i.MX6QP", IMX_CHIP_REVISION_1_0);
2508c2ecf20Sopenharmony_ci	else
2518c2ecf20Sopenharmony_ci		imx_print_silicon_rev(cpu_is_imx6dl() ? "i.MX6DL" : "i.MX6Q",
2528c2ecf20Sopenharmony_ci				imx_get_soc_revision());
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci	imx6q_enet_phy_init();
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci	of_platform_default_populate(NULL, NULL, NULL);
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci	imx_anatop_init();
2598c2ecf20Sopenharmony_ci	cpu_is_imx6q() ?  imx6q_pm_init() : imx6dl_pm_init();
2608c2ecf20Sopenharmony_ci	imx6q_1588_init();
2618c2ecf20Sopenharmony_ci	imx6q_axi_init();
2628c2ecf20Sopenharmony_ci}
2638c2ecf20Sopenharmony_ci
2648c2ecf20Sopenharmony_cistatic void __init imx6q_init_late(void)
2658c2ecf20Sopenharmony_ci{
2668c2ecf20Sopenharmony_ci	/*
2678c2ecf20Sopenharmony_ci	 * WAIT mode is broken on imx6 Dual/Quad revision 1.0 and 1.1 so
2688c2ecf20Sopenharmony_ci	 * there is no point to run cpuidle on them.
2698c2ecf20Sopenharmony_ci	 *
2708c2ecf20Sopenharmony_ci	 * It does work on imx6 Solo/DualLite starting from 1.1
2718c2ecf20Sopenharmony_ci	 */
2728c2ecf20Sopenharmony_ci	if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) ||
2738c2ecf20Sopenharmony_ci	    (cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0))
2748c2ecf20Sopenharmony_ci		imx6q_cpuidle_init();
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ci	if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
2778c2ecf20Sopenharmony_ci		platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
2788c2ecf20Sopenharmony_ci}
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_cistatic void __init imx6q_map_io(void)
2818c2ecf20Sopenharmony_ci{
2828c2ecf20Sopenharmony_ci	debug_ll_io_init();
2838c2ecf20Sopenharmony_ci	imx_scu_map_io();
2848c2ecf20Sopenharmony_ci}
2858c2ecf20Sopenharmony_ci
2868c2ecf20Sopenharmony_cistatic void __init imx6q_init_irq(void)
2878c2ecf20Sopenharmony_ci{
2888c2ecf20Sopenharmony_ci	imx_gpc_check_dt();
2898c2ecf20Sopenharmony_ci	imx_init_revision_from_anatop();
2908c2ecf20Sopenharmony_ci	imx_init_l2cache();
2918c2ecf20Sopenharmony_ci	imx_src_init();
2928c2ecf20Sopenharmony_ci	irqchip_init();
2938c2ecf20Sopenharmony_ci	imx6_pm_ccm_init("fsl,imx6q-ccm");
2948c2ecf20Sopenharmony_ci}
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_cistatic const char * const imx6q_dt_compat[] __initconst = {
2978c2ecf20Sopenharmony_ci	"fsl,imx6dl",
2988c2ecf20Sopenharmony_ci	"fsl,imx6q",
2998c2ecf20Sopenharmony_ci	"fsl,imx6qp",
3008c2ecf20Sopenharmony_ci	NULL,
3018c2ecf20Sopenharmony_ci};
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ciDT_MACHINE_START(IMX6Q, "Freescale i.MX6 Quad/DualLite (Device Tree)")
3048c2ecf20Sopenharmony_ci	.l2c_aux_val 	= 0,
3058c2ecf20Sopenharmony_ci	.l2c_aux_mask	= ~0,
3068c2ecf20Sopenharmony_ci	.smp		= smp_ops(imx_smp_ops),
3078c2ecf20Sopenharmony_ci	.map_io		= imx6q_map_io,
3088c2ecf20Sopenharmony_ci	.init_irq	= imx6q_init_irq,
3098c2ecf20Sopenharmony_ci	.init_machine	= imx6q_init_machine,
3108c2ecf20Sopenharmony_ci	.init_late      = imx6q_init_late,
3118c2ecf20Sopenharmony_ci	.dt_compat	= imx6q_dt_compat,
3128c2ecf20Sopenharmony_ciMACHINE_END
313