Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 17:00:35 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328403 - head/sys/dev/sdhci
Message-ID:  <201801251700.w0PH0Zvp059438@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Thu Jan 25 17:00:35 2018
New Revision: 328403
URL: https://svnweb.freebsd.org/changeset/base/328403

Log:
  Add support for SDHCI controller found in Qualcomm Snapdragon 410e.
  
  Tested on DragonBoard 410c.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/sdhci/sdhci_fdt.c

Modified: head/sys/dev/sdhci/sdhci_fdt.c
==============================================================================
--- head/sys/dev/sdhci/sdhci_fdt.c	Thu Jan 25 16:58:23 2018	(r328402)
+++ head/sys/dev/sdhci/sdhci_fdt.c	Thu Jan 25 17:00:35 2018	(r328403)
@@ -63,10 +63,12 @@ __FBSDID("$FreeBSD$");
 #define	SDHCI_FDT_ARMADA38X	1
 #define	SDHCI_FDT_GENERIC	2
 #define	SDHCI_FDT_XLNX_ZY7	3
+#define	SDHCI_FDT_QUALCOMM	4
 
 static struct ofw_compat_data compat_data[] = {
 	{ "marvell,armada-380-sdhci",	SDHCI_FDT_ARMADA38X },
 	{ "sdhci_generic",		SDHCI_FDT_GENERIC },
+	{ "qcom,sdhci-msm-v4",		SDHCI_FDT_QUALCOMM },
 	{ "xlnx,zy7_sdhci",		SDHCI_FDT_XLNX_ZY7 },
 	{ NULL, 0 }
 };
@@ -200,6 +202,10 @@ sdhci_fdt_probe(device_t dev)
 		break;
 	case SDHCI_FDT_GENERIC:
 		device_set_desc(dev, "generic fdt SDHCI controller");
+		break;
+	case SDHCI_FDT_QUALCOMM:
+		sc->quirks = SDHCI_QUIRK_ALL_SLOTS_NON_REMOVABLE;
+		device_set_desc(dev, "Qualcomm FDT SDHCI controller");
 		break;
 	case SDHCI_FDT_XLNX_ZY7:
 		sc->quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801251700.w0PH0Zvp059438>