summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2022-06-20 18:36:42 +0200
committerMichal Simek <michal.simek@amd.com>2022-06-24 14:37:27 +0200
commit18fcb49db51eaae58dc68f527c4880958ec5e3ca (patch)
tree189cafe330b5e5b0652752b67ce5e44ac3c14793 /drivers
parentd43d78ef033446eed9deb734c5240d4e7a6bfdde (diff)
downloadu-boot-18fcb49db51eaae58dc68f527c4880958ec5e3ca.tar.gz
u-boot-18fcb49db51eaae58dc68f527c4880958ec5e3ca.tar.bz2
u-boot-18fcb49db51eaae58dc68f527c4880958ec5e3ca.zip
soc: xilinx: zynqmp: Remove redundant checks for zynqmp_mmio_read
Remove the redundant SPL and CurrentEL checks for the zynqmp_mmio_read function call because the function itself runs the same checks. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Link: https://lore.kernel.org/r/20220620163650.18756-7-stefan.herbrechtsmeier-oss@weidmueller.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/soc_xilinx_zynqmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c
index a71115b17c..563d93da24 100644
--- a/drivers/soc/soc_xilinx_zynqmp.c
+++ b/drivers/soc/soc_xilinx_zynqmp.c
@@ -54,8 +54,7 @@ static int soc_xilinx_zynqmp_probe(struct udevice *dev)
priv->family = zynqmp_family;
- if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3 ||
- !IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE))
+ if (!IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE))
ret = zynqmp_mmio_read(ZYNQMP_PS_VERSION, &ret_payload[2]);
else
ret = xilinx_pm_request(PM_GET_CHIPID, 0, 0, 0, 0,