Another round of changes to add compatibility with the older ESHDC variety
authorian <ian@FreeBSD.org>
Thu, 26 May 2016 03:55:27 +0000 (03:55 +0000)
committerian <ian@FreeBSD.org>
Thu, 26 May 2016 03:55:27 +0000 (03:55 +0000)
commit9b1c09bf1ef8d2ffad172da432c3289d7af5bd1e
tree4254c9ca5cdd4e54a84a5a5087d03fd4ad8c35a6
parentf060a13316237e39da2e11fb19407e2d7492cb05
Another round of changes to add compatibility with the older ESHDC variety
of hardware.  Mostly this focuses on the big changes needed for setting the
bus clock, because ESDHC is SDHCI v2.0 and USDHC is 3.0, and the number,
location, and interpretation of clock divisor bits is vastly different
between the two.  This doesn't get the device all the way to functioning
on ESDHC hardware yet, but it's much closer, now getting through all the
card detection and negotiation of capabilties and speed (but it eventually
hangs on what appears to be a missing interrupt).

Another missing chunk of code for handling ESDHC's 32 bit command-and-mode
register using sdhci's pair of 16 bit writes is added.

This also does some leading whitespace cleanups and sorts some softc
struct members by size, and adds some comments (because when do I ever
touch code without adding comments?).
sys/arm/freescale/imx/imx_sdhci.c