2016-01-21 11:43 GMT+09:00 Simon Glass <s...@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 <s...@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.masah...@socionext.com>




-- 
Best Regards
Masahiro Yamada
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to