[U-Boot] [U-Boot,v2,4/5] clk: implement clk_set_defaults()

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Sun Jan 28 16:12:46 UTC 2018


> Linux uses the properties 'assigned-clocks', 'assigned-clock-parents'
> and 'assigned-clock-rates' to configure the clock subsystem for use
> with various peripheral nodes.
> 
> This implements clk_set_defaults() and hooks it up with the general
> device probibin in drivers/core/device.c: when a new device is probed,
> clk_set_defaults() will be called for it and will process the
> properties mentioned above.
> 
> Note that this functionality is designed to fail gracefully (i.e. if a
> clock-driver does not implement set_parent(), we simply accept this
> and ignore the error) as not to break existing board-support.
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Tested-by: David Wu <david.wu at rock-chips.com>
> ---
> 
> Changes in v2:
> - Fixed David's email address.
> 
>  drivers/clk/clk-uclass.c | 118 +++++++++++++++++++++++++++++++++++++++++++++++
>  drivers/core/device.c    |   6 +++
>  include/clk.h            |  17 +++++++
>  3 files changed, 141 insertions(+)
> 

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list