
21 Jan
2016
21 Jan
'16
4:04 a.m.
2016-01-21 11:43 GMT+09:00 Simon Glass sjg@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@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@socionext.com
--
Best Regards
Masahiro Yamada