diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-04-27 16:34:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-06 09:25:21 +0200 |
commit | bbae6c793f2aae9686573074e7603b3d9c0828fb (patch) | |
tree | 4caed9210e6d739c4b4a3babbb0649b8dc2dd695 /drivers/clk | |
parent | 5400f01d1f32e60e0ce1b4679419203f7b4e0008 (diff) | |
download | barebox-bbae6c793f2aae9686573074e7603b3d9c0828fb.tar.gz barebox-bbae6c793f2aae9686573074e7603b3d9c0828fb.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/clk')
-rw-r--r-- | drivers/clk/mxs/clk-imx28.c | 1 |
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); |