* [PATCH] firmware: zynqmp: Do not bind PD driver in SPL if disabled
@ 2022-02-28 16:13 Michal Simek
2022-03-18 7:21 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2022-02-28 16:13 UTC (permalink / raw)
To: u-boot, git
Cc: Adrian Fiergolski, Ashok Reddy Soma, Jaehoon Chung, Michal Simek
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>
---
drivers/firmware/firmware-zynqmp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
index 8916c5589635..78da5abc5d3e 100644
--- a/drivers/firmware/firmware-zynqmp.c
+++ b/drivers/firmware/firmware-zynqmp.c
@@ -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);
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] firmware: zynqmp: Do not bind PD driver in SPL if disabled
2022-02-28 16:13 [PATCH] firmware: zynqmp: Do not bind PD driver in SPL if disabled Michal Simek
@ 2022-03-18 7:21 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2022-03-18 7:21 UTC (permalink / raw)
To: U-Boot, git; +Cc: Adrian Fiergolski, Ashok Reddy Soma, Jaehoon Chung
po 28. 2. 2022 v 17:13 odesílatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> 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>
> ---
>
> drivers/firmware/firmware-zynqmp.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
> index 8916c5589635..78da5abc5d3e 100644
> --- a/drivers/firmware/firmware-zynqmp.c
> +++ b/drivers/firmware/firmware-zynqmp.c
> @@ -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);
> --
> 2.35.1
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-18 7:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28 16:13 [PATCH] firmware: zynqmp: Do not bind PD driver in SPL if disabled Michal Simek
2022-03-18 7:21 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.