Page MenuHomeFreeBSD

Add mmc_fdt_helpers
ClosedPublic

Authored by manu on Jan 19 2020, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 3:21 PM
Unknown Object (File)
Tue, Apr 30, 9:55 AM
Unknown Object (File)
Mon, Apr 29, 1:28 AM
Unknown Object (File)
Sun, Apr 28, 4:20 AM
Unknown Object (File)
Sat, Apr 27, 5:41 AM
Unknown Object (File)
Fri, Apr 26, 4:04 AM
Unknown Object (File)
Fri, Apr 5, 9:28 AM
Unknown Object (File)
Feb 7 2024, 11:23 PM

Details

Summary

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

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