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@linaro.org>
This commit is contained in:
parent
17c4b89df5
commit
6d6fc5012a
@ -31,6 +31,7 @@
|
|||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
#include <linux/micrel_phy.h>
|
#include <linux/micrel_phy.h>
|
||||||
#include <linux/mfd/syscon.h>
|
#include <linux/mfd/syscon.h>
|
||||||
|
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
|
||||||
#include <asm/hardware/cache-l2x0.h>
|
#include <asm/hardware/cache-l2x0.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
@ -242,7 +243,9 @@ static void __init imx6q_1588_init(void)
|
|||||||
|
|
||||||
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr");
|
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr");
|
||||||
if (!IS_ERR(gpr))
|
if (!IS_ERR(gpr))
|
||||||
regmap_update_bits(gpr, 0x4, 1 << 21, 1 << 21);
|
regmap_update_bits(gpr, IOMUXC_GPR1,
|
||||||
|
IMX6Q_GPR1_ENET_CLK_SEL_MASK,
|
||||||
|
IMX6Q_GPR1_ENET_CLK_SEL_ANATOP);
|
||||||
else
|
else
|
||||||
pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n");
|
pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user