svn commit: r316972 - head/sys/arm/freescale/imx

Ian Lepore ian at FreeBSD.org
Sat Apr 15 17:02:33 UTC 2017


Author: ian
Date: Sat Apr 15 17:02:32 2017
New Revision: 316972
URL: https://svnweb.freebsd.org/changeset/base/316972

Log:
  Add support for the imx6ul SoC.

Modified:
  head/sys/arm/freescale/imx/imx_gpt.c

Modified: head/sys/arm/freescale/imx/imx_gpt.c
==============================================================================
--- head/sys/arm/freescale/imx/imx_gpt.c	Sat Apr 15 17:00:50 2017	(r316971)
+++ head/sys/arm/freescale/imx/imx_gpt.c	Sat Apr 15 17:02:32 2017	(r316972)
@@ -118,6 +118,7 @@ static struct resource_spec imx_gpt_spec
 static struct ofw_compat_data compat_data[] = {
 	{"fsl,imx6dl-gpt", 1},
 	{"fsl,imx6q-gpt",  1},
+	{"fsl,imx6ul-gpt", 1},
 	{"fsl,imx53-gpt",  1},
 	{"fsl,imx51-gpt",  1},
 	{"fsl,imx31-gpt",  1},
@@ -133,6 +134,15 @@ imx_gpt_probe(device_t dev)
 	if (!ofw_bus_status_okay(dev))
 		return (ENXIO);
 
+	/*
+	 *  We only support a single unit, because the only thing this driver
+	 *  does with the complex timer hardware is supply the system
+	 *  timecounter and eventtimer.  There is nothing useful we can do with
+	 *  the additional device instances that exist in some chips.
+	 */
+	if (device_get_unit(dev) > 0)
+		return (ENXIO);
+
 	if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) {
 		device_set_desc(dev, "Freescale i.MX GPT timer");
 		return (BUS_PROBE_DEFAULT);


More information about the svn-src-all mailing list