]> git.sur5r.net Git - u-boot/commit
rockchip: clk: rk3399: implement set_parent() operation
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 8 Jan 2018 12:11:01 +0000 (13:11 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 28 Jan 2018 16:12:36 +0000 (17:12 +0100)
commita45f17e8b9f91628936349ef40a06d10dc9c08ae
treefaeaa41207f5caf4c7e4ce9fe69c75f0df5a2456
parent95f9a7e5957093612b1e8447ac5460a6adcea3ba
rockchip: clk: rk3399: implement set_parent() operation

This implements the (newly added) set_parent() operation for the
RK3399 with a focus on allowing the RGMII clock parent to be
configured via the assigned-clock-parents property of the GMAC node.

This implementation supports only the GMAC (in fact only the RGMII
clock parent) and allows to set this clock's parent either to the
internal SCLK_GMAC or to an external clock input (identifiable by it
providing a 'clock-output-name' of "gmac_clkin").

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: David Wu <david.wu@rock-chips.com>
Series-changes: 2
- Fixed David's email address.
drivers/clk/rockchip/clk_rk3399.c