On 08.03.24 12:16, Steffen Trumtrar wrote: > Add a function to reset DLL logic for SD devices. > > Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> Reviewed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > arch/arm/mach-zynqmp/firmware-zynqmp.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm/mach-zynqmp/firmware-zynqmp.c b/arch/arm/mach-zynqmp/firmware-zynqmp.c > index a2b61efff4..b383ed6f00 100644 > --- a/arch/arm/mach-zynqmp/firmware-zynqmp.c > +++ b/arch/arm/mach-zynqmp/firmware-zynqmp.c > @@ -511,6 +511,23 @@ static int zynqmp_pm_ioctl(u32 node_id, u32 ioctl_id, u32 arg1, u32 arg2, > arg1, arg2, out); > } > > +/** > + * zynqmp_pm_sd_dll_reset() - Reset DLL logic > + * > + * @node_id: Node ID of the device > + * @type: Reset type > + * > + * This function resets DLL logic for the SD device. > + * > + * Return: Returns status, either success or error+reason > + */ > +int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type) > +{ > + return zynqmp_pm_invoke_fn(PM_IOCTL, node_id, IOCTL_SD_DLL_RESET, > + type, 0, NULL); > +} > +EXPORT_SYMBOL_GPL(zynqmp_pm_sd_dll_reset); > + > /* > * zynqmp_pm_write_ggs() - PM API for writing global general storage (ggs) > * @index: GGS register index > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |