git: Port initial UHS-1 support from FreeBSD (Only DDR52 for eMMC so far).

Imre Vadasz ivadasz at crater.dragonflybsd.org
Tue May 30 14:30:56 PDT 2017


commit 7ba10b88109826f7f4b59e318458760d74f2452e
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun May 21 14:11:44 2017 +0200

    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)

Summary of changes:
 share/man/man4/sdhci.4          |   4 +
 sys/bus/mmc/bridge.h            |  38 +++-
 sys/bus/mmc/mmc.c               | 430 ++++++++++++++++++++++++++++++++--------
 sys/bus/mmc/mmcbr_if.m          |  20 ++
 sys/bus/mmc/mmcbrvar.h          |   9 +
 sys/bus/mmc/mmcreg.h            |  70 ++++++-
 sys/dev/disk/sdhci/sdhci.c      | 196 ++++++++++++++++--
 sys/dev/disk/sdhci/sdhci.h      |  19 +-
 sys/dev/disk/sdhci/sdhci_acpi.c |  42 +++-
 sys/dev/disk/sdhci/sdhci_if.m   |  14 ++
 sys/dev/disk/sdhci/sdhci_pci.c  |  47 +++--
 11 files changed, 758 insertions(+), 131 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ba10b88109826f7f4b59e318458760d74f2452e


-- 
DragonFly BSD source repository


More information about the Commits mailing list