Add support for the imx6ul SoC.

This commit is contained in:
Ian Lepore 2017-04-15 17:02:32 +00:00
parent d491f8ca2f
commit e0427caa47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316972

View File

@ -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);