[U-Boot] [PATCH v4 01/50] dm: clk: Add support for decoding clocks from the device tree
Masahiro Yamada
yamada.masahiro at socionext.com
Thu Jan 21 04:04:28 CET 2016
2016-01-21 11:43 GMT+09:00 Simon Glass <sjg at chromium.org>:
> Add a method which can locate a clock for a device, given its index. This
> uses the normal device tree bindings to return the clock device and the
> first argument which is normally used as a peripheral ID in U-Boot.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4:
> - Add a static inline for when OF_CONTROL is not enabled
>
> Changes in v3:
> - Use CONFIG_IS_ENABLED(OF_CONTROL) in C and header file
>
> Changes in v2:
> - Make the peripheral ID a return value
> - Add an assert for clk_devp
> - Make the function dependent on OF_CONTROL
Reviewed-by: Masahiro Yamada <yamada.masahiro at socionext.com>
--
Best Regards
Masahiro Yamada
More information about the U-Boot
mailing list