mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
firmware: zynqmp: Simplify power-domain driver bind
CONFIG_IS_ENABLED macro is covering CONFIG_POWER_DOMAIN or CONFIG_SPL_POWER_DOMAIN Kconfig symbols based on build target which simplify logic around binding power domain driver. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/c75627e92eeaffedf0f7e682edd4f6f39f0b5706.1752826352.git.michal.simek@amd.com
This commit is contained in:
parent
7ad14936e3
commit
27fa1e2c17
@ -500,11 +500,8 @@ static int zynqmp_firmware_bind(struct udevice *dev)
|
||||
if (!smc_call_handler)
|
||||
return -EINVAL;
|
||||
|
||||
if ((IS_ENABLED(CONFIG_XPL_BUILD) &&
|
||||
IS_ENABLED(CONFIG_SPL_POWER_DOMAIN) &&
|
||||
IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN)) ||
|
||||
(!IS_ENABLED(CONFIG_XPL_BUILD) &&
|
||||
IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN))) {
|
||||
if (CONFIG_IS_ENABLED(POWER_DOMAIN) &&
|
||||
IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN)) {
|
||||
ret = device_bind_driver_to_node(dev, "zynqmp_power_domain",
|
||||
"zynqmp_power_domain",
|
||||
dev_ofnode(dev), &child);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user