mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
firmware: zynqmp: Do not bind PD driver in SPL if disabled
Change if condition to cover SPL flow. SPL needs to have CONFIG_SPL_POWER_DOMAIN enabled to be able to bind CONFIG_ZYNQMP_POWER_DOMAIN driver. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/8e1d381013a0ce39d736da166d2b401c4b12d38a.1646064792.git.michal.simek@xilinx.com
This commit is contained in:
parent
8bd9e2f631
commit
f307c688ea
1 changed files with 5 additions and 1 deletions
|
@ -334,7 +334,11 @@ static int zynqmp_firmware_bind(struct udevice *dev)
|
|||
int ret;
|
||||
struct udevice *child;
|
||||
|
||||
if (IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN)) {
|
||||
if ((IS_ENABLED(CONFIG_SPL_BUILD) &&
|
||||
IS_ENABLED(CONFIG_SPL_POWER_DOMAIN) &&
|
||||
IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN)) ||
|
||||
(!IS_ENABLED(CONFIG_SPL_BUILD) &&
|
||||
IS_ENABLED(CONFIG_ZYNQMP_POWER_DOMAIN))) {
|
||||
ret = device_bind_driver_to_node(dev, "zynqmp_power_domain",
|
||||
"zynqmp_power_domain",
|
||||
dev_ofnode(dev), &child);
|
||||
|
|
Loading…
Reference in a new issue