]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
TI sdhci driver improvements, mostly related to fdt data...
authorIan Lepore <ian@FreeBSD.org>
Fri, 1 Nov 2013 19:22:06 +0000 (19:22 +0000)
committerIan Lepore <ian@FreeBSD.org>
Fri, 1 Nov 2013 19:22:06 +0000 (19:22 +0000)
commit4a98e4695088b4c8f2eb06c4e9847b2bd408a006
treeadea47209fbd7572d9a01fc8d4b4fb81141712ca
parentbedc59de8735174f3b1d9a95b976618bdadcd815
TI sdhci driver improvements, mostly related to fdt data...

Use the published compatible strings (our own invention, "ti,mmchs" is
still accepted as well, for now).

Don't blindly turn on 8-bit bus mode, because even though the conroller
supports it, the board has to be wired appropriately as well.  Use the
published property (bus-width=<n>) and honor all the valid values (1,4,8).

The eMMC device on a Beaglebone Black is wired for 8-bit, update the dts.

The mmchs controller can inherently do both 1.8v and 3.0v on the first
device and 1.8v only on other devices, unless an external transceiver is
used.  Set the voltage automatically for the first device and honor
the published fdt property (ti,dualvolt) for other devices.

Thanks go to Ilya Bakulin for figuring out the voltage compatibility stuff.
sys/arm/ti/ti_sdhci.c
sys/boot/fdt/dts/am335x.dtsi
sys/boot/fdt/dts/beaglebone-black.dts