Page MenuHomeFreeBSD

Add mmc_fdt_helpers

Authored by manu on Jan 19 2020, 7:54 PM.
Referenced Files
Unknown Object (File)
Jun 19 2024, 8:45 PM
Unknown Object (File)
May 24 2024, 3:06 AM
Unknown Object (File)
May 10 2024, 2:17 PM
Unknown Object (File)
May 9 2024, 2:56 AM
Unknown Object (File)
May 8 2024, 8:20 AM
Unknown Object (File)
May 5 2024, 7:26 AM
Unknown Object (File)
May 4 2024, 8:59 PM
Unknown Object (File)
May 4 2024, 8:58 PM



Those functions are here to help fdt mmc controller drivers to parse
the dts to find the supported speeds and the regulators.
Not all DTS have every settings properly defined so host controller
will still have to add some caps themselves.
It also add a mmc_fdt_gpio_setup function which will read the cd-gpios
property and register it as the CD pin. If the pin support interrupts one will
be registered and the cd_helper function will be called. If the pin doesn't
support interrupts the internal taskqueue will poll for change and call the same
cd_helper function.

TODO: manpages.

Test Plan

Tested on different allwinner boards.

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable