[U-Boot] [PATCH 33/41] power: Add PD device lookup interface to power domain uclass

Simon Glass sjg at chromium.org
Wed May 30 19:18:43 UTC 2018


Hi Peng,

On 28 May 2018 at 06:25, Peng Fan <peng.fan at nxp.com> wrote:
> Add power_domain_lookup_name interface to power domain uclass to find
> a power domain device by its DTB node name, not using its associated
> client device.
>
> Through this interface, we can operate the power domain devices directly.
> This is needed for non-DM drivers.
>
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  drivers/power/domain/power-domain-uclass.c | 42 ++++++++++++++++++++++++++++++
>  include/power-domain.h                     | 15 +++++++++++
>  2 files changed, 57 insertions(+)
>

Please add a test to test/dm/power-domain.c for your newe function.

Regards,
Simon


More information about the U-Boot mailing list