summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-04-27 16:34:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-28 12:19:34 +0200
commitcff8ddcb0ba37a184819e7a50951fe383dd52884 (patch)
tree2f301bf8ed95ff0d0eb46b096920a258479f9c24 /drivers
parent0759f42e35f275e0ead7a63e497b09f8f5ab3395 (diff)
downloadbarebox-cff8ddcb0ba37a184819e7a50951fe383dd52884.tar.gz
barebox-cff8ddcb0ba37a184819e7a50951fe383dd52884.tar.xz
clk: mxs: Do not enable enet_out clock
The enet_out clock gate is wrongly abstracted. The bit it is controlling is not just a bit to enable the clock, it also controls the direction of the ethernet reference clock. When the bit is cleared, the ethernet reference clock must be fed into the SoC from an external oscillator; when it's set then the ethernet reference clock is generated internally. The correct setting depends on the board, so we must not set the bit unconditionally during probe of the clock driver. Whether or not the clock is enabled can be selected by the board by removing the clock from the FEC in its dts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/mxs/clk-imx28.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c
index 4adb1c6866..aedd8d4a7c 100644
--- a/drivers/clk/mxs/clk-imx28.c
+++ b/drivers/clk/mxs/clk-imx28.c
@@ -131,7 +131,6 @@ static int __init mx28_clocks_init(void __iomem *regs)
clk_set_rate(clks[ssp2], 96000000);
clk_set_rate(clks[ssp3], 96000000);
clk_set_parent(clks[lcdif_sel], clks[ref_pix]);
- clk_enable(clks[enet_out]);
clkdev_add_physbase(clks[ssp0], IMX_SSP0_BASE, NULL);
clkdev_add_physbase(clks[ssp1], IMX_SSP1_BASE, NULL);