imx8: power: Add PD device lookup interface to power domain uclass
authorPeng Fan <peng.fan@nxp.com>
Mon, 4 May 2020 13:16:50 +0000 (21:16 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit8c0a1c6de84387ad6264d4ea6fa03e2214908960
tree47b366326f87c69cba3e06a2a4be51ecb76eb8b1
parente6405713d88eeed90c9428552dfc87bfb4b05ca0
imx8: power: Add PD device lookup interface to power domain uclass

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.

Modified from Ye's NXP downstream patch

only for legacy imx8 power domain driver, since we have not migrated
to use new power domain driver.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8/sys_proto.h
drivers/power/domain/imx8-power-domain-legacy.c