]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: zynq_sdhci: Add xilinx_pm_request weak function
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Tue, 21 Sep 2021 12:02:28 +0000 (06:02 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 22 Sep 2021 07:39:20 +0000 (09:39 +0200)
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>
Acked-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
drivers/mmc/zynq_sdhci.c

index daaba1f0a5f2c2cb861b96fd2ddf1dc69d3e745b..6c4d797174c454d83e4868d80c7a3734cbc65db3 100644 (file)
@@ -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,