Date: Wed, 26 Aug 2015 10:54:14 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287161 - head/sys/dev/mmc/host Message-ID: <201508261054.t7QAsECn001955@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Wed Aug 26 10:54:14 2015 New Revision: 287161 URL: https://svnweb.freebsd.org/changeset/base/287161 Log: Only access the Samsung registers when targeting Samsung hardware. Sponsored by: ABT Systems Ltd Modified: head/sys/dev/mmc/host/dwmmc.c Modified: head/sys/dev/mmc/host/dwmmc.c ============================================================================== --- head/sys/dev/mmc/host/dwmmc.c Wed Aug 26 10:32:23 2015 (r287160) +++ head/sys/dev/mmc/host/dwmmc.c Wed Aug 26 10:54:14 2015 (r287161) @@ -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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508261054.t7QAsECn001955>