Port initial UHS-1 support from FreeBSD (Only DDR52 for eMMC so far).
authorImre Vadász <imre@vdsz.com>
Sun, 21 May 2017 12:11:44 +0000 (14:11 +0200)
committerImre Vadász <imre@vdsz.com>
Tue, 30 May 2017 21:30:33 +0000 (23:30 +0200)
commit7ba10b88109826f7f4b59e318458760d74f2452e
treef45472601f37d06d62a0bf6eeb4349e263ddbd01
parentd597055e210223a5f293e101c9dbfc1e5f1e09cd
Port initial UHS-1 support from FreeBSD (Only DDR52 for eMMC so far).

* Fix typo from FreeBSD commit:
  SDHCI_CTRL2_DRIVER_TYPE_A/_C_D vs. SDHCI_CAN_DRIVE_TYPE_A/_C/_D.
  And these Driver Type capability bits are in the CAPABILITIES2 register.

* Hide 1.8V VDD capability when the slot is detected as a removable card
  slot, as the spec explicitly states that the 1.8V VDD is only meant to
  be for embedded slots.

* This gives ca. 75 MiB/s read speed with the eMMC in my HP X2 210
  detachable with the Intel Cherry Trail eMMC controller, in DDR52 mode.

Taken-From: FreeBSD (svn r315598)
share/man/man4/sdhci.4
sys/bus/mmc/bridge.h
sys/bus/mmc/mmc.c
sys/bus/mmc/mmcbr_if.m
sys/bus/mmc/mmcbrvar.h
sys/bus/mmc/mmcreg.h
sys/dev/disk/sdhci/sdhci.c
sys/dev/disk/sdhci/sdhci.h
sys/dev/disk/sdhci/sdhci_acpi.c
sys/dev/disk/sdhci/sdhci_if.m
sys/dev/disk/sdhci/sdhci_pci.c