Release 4.11 arch/arm/mach-imx/mach-imx6ul.c
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/irqchip.h>
#include <linux/mfd/syscon.h>
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
#include <linux/micrel_phy.h>
#include <linux/of_platform.h>
#include <linux/phy.h>
#include <linux/regmap.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include "common.h"
#include "cpuidle.h"
static void __init imx6ul_enet_clk_init(void)
{
struct regmap *gpr;
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6ul-iomuxc-gpr");
if (!IS_ERR(gpr))
regmap_update_bits(gpr, IOMUXC_GPR1, IMX6UL_GPR1_ENET_CLK_DIR,
IMX6UL_GPR1_ENET_CLK_OUTPUT);
else
pr_err("failed to find fsl,imx6ul-iomux-gpr regmap\n");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Fugang Duan | 46 | 100.00% | 1 | 100.00% |
Total | 46 | 100.00% | 1 | 100.00% |
static int ksz8081_phy_fixup(struct phy_device *dev)
{
if (dev && dev->interface == PHY_INTERFACE_MODE_MII) {
phy_write(dev, 0x1f, 0x8110);
phy_write(dev, 0x16, 0x201);
} else if (dev && dev->interface == PHY_INTERFACE_MODE_RMII) {
phy_write(dev, 0x1f, 0x8190);
phy_write(dev, 0x16, 0x202);
}
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Fugang Duan | 75 | 100.00% | 1 | 100.00% |
Total | 75 | 100.00% | 1 | 100.00% |
static void __init imx6ul_enet_phy_init(void)
{
if (IS_BUILTIN(CONFIG_PHYLIB))
phy_register_fixup_for_uid(PHY_ID_KSZ8081, MICREL_PHY_ID_MASK,
ksz8081_phy_fixup);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Fugang Duan | 17 | 68.00% | 1 | 33.33% |
Fabio Estevam | 8 | 32.00% | 2 | 66.67% |
Total | 25 | 100.00% | 3 | 100.00% |
static inline void imx6ul_enet_init(void)
{
imx6ul_enet_clk_init();
imx6ul_enet_phy_init();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Fugang Duan | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
static void __init imx6ul_init_machine(void)
{
struct device *parent;
parent = imx_soc_device_init();
if (parent == NULL)
pr_warn("failed to initialize soc device\n");
of_platform_default_populate(NULL, NULL, parent);
imx6ul_enet_init();
imx_anatop_init();
imx6ul_pm_init();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Frank Li | 33 | 68.75% | 1 | 25.00% |
Peter Chen | 9 | 18.75% | 1 | 25.00% |
Anson Huang | 3 | 6.25% | 1 | 25.00% |
Fugang Duan | 3 | 6.25% | 1 | 25.00% |
Total | 48 | 100.00% | 4 | 100.00% |
static void __init imx6ul_init_irq(void)
{
imx_init_revision_from_anatop();
imx_src_init();
irqchip_init();
imx6_pm_ccm_init("fsl,imx6ul-ccm");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Frank Li | 18 | 78.26% | 1 | 50.00% |
Anson Huang | 5 | 21.74% | 1 | 50.00% |
Total | 23 | 100.00% | 2 | 100.00% |
static void __init imx6ul_init_late(void)
{
imx6sx_cpuidle_init();
if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bai Ping | 28 | 90.32% | 1 | 50.00% |
Anson Huang | 3 | 9.68% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
static const char * const imx6ul_dt_compat[] __initconst = {
"fsl,imx6ul",
"fsl,imx6ull",
NULL,
};
DT_MACHINE_START(IMX6UL, "Freescale i.MX6 Ultralite (Device Tree)")
.init_irq = imx6ul_init_irq,
.init_machine = imx6ul_init_machine,
.init_late = imx6ul_init_late,
.dt_compat = imx6ul_dt_compat,
MACHINE_END
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Fugang Duan | 171 | 50.15% | 1 | 10.00% |
Frank Li | 103 | 30.21% | 1 | 10.00% |
Bai Ping | 33 | 9.68% | 1 | 10.00% |
Anson Huang | 14 | 4.11% | 2 | 20.00% |
Peter Chen | 11 | 3.23% | 2 | 20.00% |
Fabio Estevam | 8 | 2.35% | 2 | 20.00% |
Nico Pitre | 1 | 0.29% | 1 | 10.00% |
Total | 341 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.