opnsense-src/sys/dev/sdhci
Hubert Mazur de9c000ced sdhci_fsl_fdt: Add support for HS200/HS400 modes
The controller requires some custom logic to perform MMC tuning
and to later switch to HS400 mode. Implement it supplying mmcbr_tune
and sdhci_set_uhs_timing devmethods respectivly. Since the latter
is called unconditionally when the ios is updated we need to keep
track of the tuning state in sc and execute the HS400 switch logic
only when required.

Two HS200/HS400 related errata were implemented.
1. In HS400 modes the clock divisors are limited to 4, 8, 12.
   Apply it by falling back to the closes, higher divider when needed.
2. Hardware tuning procedure can sometimes fails. If that is the case
   fallback to the software tuning.

Reviewed by: 		manu, mw
Obtained from:		Semihalf
Sponsored by:		Alstom Group
Differential revision:	https://reviews.freebsd.org/D33320
2021-12-08 11:21:02 +01:00
..
fsl_sdhci.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci.c sdhci: Provide devmethod for software reset 2021-11-05 10:18:57 +01:00
sdhci.h sdhci: Provide devmethod for software reset 2021-11-05 10:18:57 +01:00
sdhci_acpi.c o Don't allocate resources for SDMA in sdhci(4) if the controller or the 2018-12-30 23:08:06 +00:00
sdhci_fdt.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci_fdt_gpio.c Release all previously allocated resources. 2017-03-08 14:52:03 +00:00
sdhci_fdt_gpio.h Add new helper routines for sdhci bridge drivers that use gpio pins for 2017-01-09 01:54:36 +00:00
sdhci_fsl_fdt.c sdhci_fsl_fdt: Add support for HS200/HS400 modes 2021-12-08 11:21:02 +01:00
sdhci_if.m sdhci: Provide devmethod for software reset 2021-11-05 10:18:57 +01:00
sdhci_pci.c sdhci(4): Recognize the Texas Instruments PCIxx12 card reader. 2020-08-25 18:32:43 +00:00
sdhci_xenon.c sdhci_xenon: split driver file into generic file and fdt parts 2021-09-29 16:19:28 +02:00
sdhci_xenon.h sdhci_xenon: split driver file into generic file and fdt parts 2021-09-29 16:19:28 +02:00
sdhci_xenon_acpi.c sdhci_xenon: add ACPI support 2021-09-29 16:19:28 +02:00
sdhci_xenon_fdt.c sdhci_xenon: split driver file into generic file and fdt parts 2021-09-29 16:19:28 +02:00