diff options
author | andrew <andrew@FreeBSD.org> | 2015-08-26 10:54:14 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-08-26 10:54:14 +0000 |
commit | 2642e0210146d8c08822ad425c735a57bc9af2c9 (patch) | |
tree | 4f143ee22ff22165fe1db55a3bf2e36f6f220888 /sys/dev/mmc | |
parent | 41651437edab071c5a4a10aede0483af3dbbc7a0 (diff) | |
download | FreeBSD-src-2642e0210146d8c08822ad425c735a57bc9af2c9.zip FreeBSD-src-2642e0210146d8c08822ad425c735a57bc9af2c9.tar.gz |
Only access the Samsung registers when targeting Samsung hardware.
Sponsored by: ABT Systems Ltd
Diffstat (limited to 'sys/dev/mmc')
-rw-r--r-- | sys/dev/mmc/host/dwmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index 162cd94..1d2dac2 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -582,7 +582,7 @@ dwmmc_attach(device_t dev) if ((sc->hwtype & HWTYPE_MASK) == HWTYPE_ROCKCHIP) { sc->use_pio = 1; sc->pwren_inverted = 1; - } else { + } else if ((sc->hwtype & HWTYPE_MASK) == HWTYPE_EXYNOS) { WRITE4(sc, EMMCP_MPSBEGIN0, 0); WRITE4(sc, EMMCP_SEND0, 0); WRITE4(sc, EMMCP_CTRL0, (MPSCTRL_SECURE_READ_BIT | |