Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 17:02:32 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316972 - head/sys/arm/freescale/imx
Message-ID:  <201704151702.v3FH2W3j029052@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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