From owner-svn-ports-all@freebsd.org Fri Aug 11 21:32:39 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D116DC7BEA; Fri, 11 Aug 2017 21:32:39 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A295644AB; Fri, 11 Aug 2017 21:32:38 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7BLWcRQ099753; Fri, 11 Aug 2017 21:32:38 GMT (envelope-from marius@FreeBSD.org) Received: (from marius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7BLWcQe099751; Fri, 11 Aug 2017 21:32:38 GMT (envelope-from marius@FreeBSD.org) Message-Id: <201708112132.v7BLWcQe099751@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marius set sender to marius@FreeBSD.org using -f From: Marius Strobl Date: Fri, 11 Aug 2017 21:32:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447792 - in head/sysutils/mmc-utils: . files X-SVN-Group: ports-head X-SVN-Commit-Author: marius X-SVN-Commit-Paths: in head/sysutils/mmc-utils: . files X-SVN-Commit-Revision: 447792 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 21:32:39 -0000 Author: marius Date: Fri Aug 11 21:32:37 2017 New Revision: 447792 URL: https://svnweb.freebsd.org/changeset/ports/447792 Log: Add a patch allowing mmc-utils to detect HS400/HS400ES support. Modified: head/sysutils/mmc-utils/Makefile head/sysutils/mmc-utils/files/patch-mmc_cmds.c Modified: head/sysutils/mmc-utils/Makefile ============================================================================== --- head/sysutils/mmc-utils/Makefile Fri Aug 11 21:32:06 2017 (r447791) +++ head/sysutils/mmc-utils/Makefile Fri Aug 11 21:32:37 2017 (r447792) @@ -4,6 +4,7 @@ PORTNAME= mmc-utils PORTVERSION= 20170320 DISTVERSIONSUFFIX= -37c86e60 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= LOCAL/marius Modified: head/sysutils/mmc-utils/files/patch-mmc_cmds.c ============================================================================== --- head/sysutils/mmc-utils/files/patch-mmc_cmds.c Fri Aug 11 21:32:06 2017 (r447791) +++ head/sysutils/mmc-utils/files/patch-mmc_cmds.c Fri Aug 11 21:32:37 2017 (r447792) @@ -32,3 +32,23 @@ if (res) { fprintf(stderr, "Error getting device size, errno: %d\n", errno); +@@ -1506,13 +1521,18 @@ int do_read_extcsd(int nargs, char **arg + /* A441/A43: reserved [197] [195] [193] [190] [188] + * [186] [184] [182] [180] [176] */ + +- if (ext_csd_rev >= 6) ++ if (ext_csd_rev >= 6) { + printf("I/O Driver Strength [DRIVER_STRENGTH: 0x%02x]\n", + ext_csd[197]); ++ printf("Enhanced Strobe mode [STROBE_SUPPORT: 0x%02x]\n", ++ ext_csd[184]); ++ } + + /* DEVICE_TYPE in A45, CARD_TYPE in A441 */ + reg = ext_csd[196]; + printf("Card Type [CARD_TYPE: 0x%02x]\n", reg); ++ if (reg & 0x80) printf(" HS400 Dual Data Rate eMMC @200MHz 1.2VI/O\n"); ++ if (reg & 0x40) printf(" HS400 Dual Data Rate eMMC @200MHz 1.8VI/O\n"); + if (reg & 0x20) printf(" HS200 Single Data Rate eMMC @200MHz 1.2VI/O\n"); + if (reg & 0x10) printf(" HS200 Single Data Rate eMMC @200MHz 1.8VI/O\n"); + if (reg & 0x08) printf(" HS Dual Data Rate eMMC @52MHz 1.2VI/O\n");