linux/drivers/clk/rockchip
Heiko Stuebner befadb2392 clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac
commit 4791eb61db upstream.

The dwmac ethernet controller on the rk3288 supports phys connected
via rgmii and rmii. With rgmii phys it is expected that the mac clock
is provided externally while with rmii phys the clock can be external
but also generated from the plls. In the later case it of course needs
be at 50MHz, which gets set from the dwmac_rk driver.
As most devices use a rgmii phy it never surfaced so far that the mac
clk mux, doesn't go up one lever to the pll clock in the rmii case with
internal clock generation, as it is missing the CLK_SET_RATE_PARENT flag,
and thus will not set the correct frequency in most cases.

Fixes: b9e4ba5416 ("clk: rockchip: add clock controller for rk3288")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-09-21 10:05:31 -07:00
..
clk-cpu.c clk: rockchip: fix deadlock possibility in cpuclk 2015-01-17 11:22:39 -08:00
clk-mmc-phase.c clk: rockchip: Add support for the mmc clock phases using the framework 2014-11-28 00:44:24 +01:00
clk-pll.c clk: rockchip: add optional sync to pll rate parameters 2014-11-25 09:57:18 +01:00
clk-rk3188.c clk: don't use __initconst for non-const arrays 2015-04-12 17:18:27 -07:00
clk-rk3288.c clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac 2015-09-21 10:05:31 -07:00
clk-rockchip.c clk: rockchip: fix function type for CLK_OF_DECLARE 2014-05-20 14:25:22 -05:00
clk.c clk: don't use __initconst for non-const arrays 2015-04-12 17:18:27 -07:00
clk.h clk: don't use __initconst for non-const arrays 2015-04-12 17:18:27 -07:00
Makefile clk: rockchip: Add support for the mmc clock phases using the framework 2014-11-28 00:44:24 +01:00
softrst.c clk: rockchip: add reset controller 2014-07-13 12:17:07 -07:00