aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2013-06-26 09:08:49 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:00:33 -0400
commit15d5542bf5c0c20ce6f5d18b26616eef4f38351b (patch)
tree2836312360542b8f9b95c9233116d406d94a173b
parent91981b35aa82f97b9cacac5d03734e4e3f8d075d (diff)
ARM i.MX6Q: Use ENET_CLK_SEL defines in imx6q_1588_init
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
-rw-r--r--arch/arm/mach-imx/mach-imx6q.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 5536fd81379a..8ce9089d76e5 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -29,6 +29,7 @@
29#include <linux/regmap.h> 29#include <linux/regmap.h>
30#include <linux/micrel_phy.h> 30#include <linux/micrel_phy.h>
31#include <linux/mfd/syscon.h> 31#include <linux/mfd/syscon.h>
32#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
32#include <asm/hardware/cache-l2x0.h> 33#include <asm/hardware/cache-l2x0.h>
33#include <asm/mach/arch.h> 34#include <asm/mach/arch.h>
34#include <asm/mach/map.h> 35#include <asm/mach/map.h>
@@ -151,7 +152,9 @@ static void __init imx6q_1588_init(void)
151 152
152 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); 153 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr");
153 if (!IS_ERR(gpr)) 154 if (!IS_ERR(gpr))
154 regmap_update_bits(gpr, 0x4, 1 << 21, 1 << 21); 155 regmap_update_bits(gpr, IOMUXC_GPR1,
156 IMX6Q_GPR1_ENET_CLK_SEL_MASK,
157 IMX6Q_GPR1_ENET_CLK_SEL_ANATOP);
155 else 158 else
156 pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n"); 159 pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n");
157 160