[PATCH] mmc: zynq_sdhci: Add weak function prototype

Michal Simek monstr at monstr.eu
Tue May 3 09:15:20 CEST 2022


st 27. 4. 2022 v 10:27 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> From: T Karthik Reddy <t.karthik.reddy at xilinx.com>
>
> zynqmp_pm_is_function_supported() which checks feature support on som,
> which is implemented in firmware_zynqmp.c driver. As mini configuration
> does not use firmware driver, so create a weak function to avoid
> compilation error on zynqmp mini configuration.
>
> Signed-off-by: T Karthik Reddy <t.karthik.reddy at xilinx.com>
> Acked-by: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/mmc/zynq_sdhci.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
> index a59d96c6bdad..e978b6798854 100644
> --- a/drivers/mmc/zynq_sdhci.c
> +++ b/drivers/mmc/zynq_sdhci.c
> @@ -79,6 +79,11 @@ __weak int xilinx_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2,
>         return 0;
>  }
>
> +__weak int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id)
> +{
> +       return 1;
> +}
> +
>  #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,
> --
> 2.36.0
>

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


More information about the U-Boot mailing list