aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>2021-10-01 16:38:38 +0530
committerMichal Simek <michal.simek@xilinx.com>2021-10-21 08:50:59 +0200
commita3e3d4698e3c5812bba76cf0f35a0f71b27d5973 (patch)
treedb7a0cf7c8c6ceb9783eb0c8ca68e0a2235bbdac
parentfb1018106a7bbb1a0d723029f6760b1b1b4d306d (diff)
downloadu-boot-a3e3d4698e3c5812bba76cf0f35a0f71b27d5973.zip
u-boot-a3e3d4698e3c5812bba76cf0f35a0f71b27d5973.tar.gz
u-boot-a3e3d4698e3c5812bba76cf0f35a0f71b27d5973.tar.bz2
mmc: zynq_sdhci: Add xilinx_pm_request weak function
Mini emmc does not use any pmufw and ZYNQMP_FIRMWARE is disabled. xilinx_pm_request() will not be compiled and causes undefined reference to `xilinx_pm_request' error. So add a weak function in zynq_sdhci.c file. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Link: https://lore.kernel.org/r/1633086518-32636-1-git-send-email-t.karthik.reddy@xilinx.com Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--drivers/mmc/zynq_sdhci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index c94825d..5cea4c6 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -69,6 +69,12 @@ __weak int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value)
return 0;
}
+__weak int xilinx_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2,
+ u32 arg3, u32 *ret_payload)
+{
+ return 0;
+}
+
#if defined(CONFIG_ARCH_ZYNQMP) || defined(CONFIG_ARCH_VERSAL)
/* Default settings for ZynqMP Clock Phases */
static const u32 zynqmp_iclk_phases[] = {0, 63, 63, 0, 63, 0,