rockchip: clk: rk3368: add support for GMAC (SLCK_MAC) clock
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 14 Jul 2017 17:57:39 +0000 (19:57 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:32 +0000 (17:12 +0200)
commitdf0ae00041c62709917ad600999fd2945dc69426
tree301ec5018cb5038ec4f7a07ef9d2a490900a75bd
parent629246907312390bbc281e531b60ac981842670f
rockchip: clk: rk3368: add support for GMAC (SLCK_MAC) clock

To enable the GMAC on the RK3368, we need to set up the clocking
appropriately to generate a tx_clk for the MAC.

This adds an implementation that implements the use of the <&ext_gmac>
clock (i.e. an external 125MHz clock for RGMII provided by the PHY).
This is the clock setup used by the boards currently supported by
U-Boot (i.e. Geekbox, Sheep and RK3368-uQ7).

This includes the change from commit
 - rockchip: clk: rk3368: define GMAC_MUX_SEL_EXTCLK

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/cru_rk3368.h
drivers/clk/rockchip/clk_rk3368.c