[U-Boot] [PATCH 1/4] dm: clk: Add a way to find a clock by its driver

Simon Glass sjg at chromium.org
Mon Jul 18 14:16:41 CEST 2016


On 17 July 2016 at 15:23, Simon Glass <sjg at chromium.org> wrote:
> Some SoCs have a single clock device. Provide a way to find it given its
> driver name. This is handled by the linker so will fail if the name is not
> found, avoiding strange errors when names change and do not match. It is
> also faster than a string comparison.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/core/uclass.c | 20 ++++++++++++++++++++
>  include/dm/device.h   |  4 ++++
>  include/dm/uclass.h   | 17 +++++++++++++++++
>  3 files changed, 41 insertions(+)

Applied to u-boot-rockchip.


More information about the U-Boot mailing list