summaryrefslogtreecommitdiff
path: root/arch/arm/mach-meson/eth.c
diff options
context:
space:
mode:
authorBeniamino Galvani <b.galvani@gmail.com>2018-06-14 13:43:40 +0200
committerTom Rini <trini@konsulko.com>2018-06-19 07:31:47 -0400
commit2e668af5531815dc6a6190cf6490b866da71ffaa (patch)
tree19f0f2494c4484d7476472ead10d9e4a1d820c26 /arch/arm/mach-meson/eth.c
parentc0fc1e215c6117b159bb9ca736d3e3338bbc028b (diff)
meson: use the clock driver
Use the clk framework to initialize clocks from drivers that need them instead of having hardcoded frequencies and initializations from board code. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'arch/arm/mach-meson/eth.c')
-rw-r--r--arch/arm/mach-meson/eth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-meson/eth.c b/arch/arm/mach-meson/eth.c
index 061f19a0e3..8b28bc8531 100644
--- a/arch/arm/mach-meson/eth.c
+++ b/arch/arm/mach-meson/eth.c
@@ -48,7 +48,6 @@ void meson_gx_eth_init(phy_interface_t mode, unsigned int flags)
return;
}
- /* Enable power and clock gate */
- setbits_le32(GX_GCLK_MPEG_1, GX_GCLK_MPEG_1_ETH);
+ /* Enable power gate */
clrbits_le32(GX_MEM_PD_REG_0, GX_MEM_PD_REG_0_ETH_MASK);
}