freebsd-dev/sys/dev/sdhci
Artur Rojek 8b57ee7e01 sdhci_fsl_fdt: Provide more accurate clk calculation
SDHCI controllers found in the QorIQ SoCs offer improved accuracy of
the clock frequency selection, compared to the SDHCI standard. Frequency
selection is performed using two divider registers, named prescaler and
divisor, according to the following formula:
frequency = base clock / (prescaler * divisor), where prescaler can be
bypassed (set to 1) and divisor permitted to take odd values.

Rather than depend on clock division precalculated by sdhci core, make
use of this property of the divider registers and achieve frequencies
closer to the ones requested.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D32706
2021-11-05 10:18:57 +01:00
..
fsl_sdhci.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci_acpi.c
sdhci_fdt_gpio.c
sdhci_fdt_gpio.h
sdhci_fdt.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci_fsl_fdt.c sdhci_fsl_fdt: Provide more accurate clk calculation 2021-11-05 10:18:57 +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_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
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.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