[PATCH v3 1/4] mmc: pic32: Refresh PIC32 MMC driver

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Sat Sep 19 21:26:09 CEST 2020


Am Dienstag, den 01.09.2020, 02:55 +0000 schrieb John Robertson:
> The existing driver is not compatible with the Driver Model.
> 
> This patch makes the necessary changes while also removing obsolescent
> calls/properties as follows:
> 
> - fdtdec_* calls replaced with dev_read_* equivalents;
> - 'clock-freq-min-max' property replaced by querying the frequency of
>   the source clock 'base_clk';
> - The card detect erratum workaround is applied during probe rather than
>   overriding get_cd.
> 
> The card detect workaround (Microchip ref. DS80000736E, erratum #15) is
> not always needed and can be disabled using a vendor specific DT
> property.
> 
> Signed-off-by: John Robertson <john.robertson at simiatec.com>
> ---
> Changes in v3 - address review comments from Daniel Schwierzeck
> - Remove <common.h>, DECLARE_GLOBAL_DATA_PTR not required by dev_* API
> - Replace dev_read_addr_size() + ioremap() with dev_remap_addr()
> 
>  drivers/mmc/pic32_sdhci.c | 86 +++++++++++++++++++++++----------------
>  1 file changed, 50 insertions(+), 36 deletions(-)
> 

applied to u-boot-mips/fixes, thanks.

-- 
- Daniel



More information about the U-Boot mailing list