Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2020 08:59:16 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365709 - head/sys/dev/gpio
Message-ID:  <202009140859.08E8xGSa077195@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Mon Sep 14 08:59:16 2020
New Revision: 365709
URL: https://svnweb.freebsd.org/changeset/base/365709

Log:
  Allow for interrupts on pl061 children
  
  Add enough infrastructure for interrupts on children of the pl061 GPIO
  controller. As gpiobus already provided these the pl061 driver also needs
  to pass requests up the newbus hierarchy.
  
  Currently there are no children that expect to configure interrupts, however
  this is expected to change to support the ACPI Event Information interface.
  
  Sponsored by:	Innovate UK

Modified:
  head/sys/dev/gpio/pl061.c

Modified: head/sys/dev/gpio/pl061.c
==============================================================================
--- head/sys/dev/gpio/pl061.c	Mon Sep 14 08:51:18 2020	(r365708)
+++ head/sys/dev/gpio/pl061.c	Mon Sep 14 08:59:16 2020	(r365709)
@@ -553,6 +553,11 @@ static device_method_t pl061_methods[] = {
 	DEVMETHOD(device_attach,	pl061_attach),
 	DEVMETHOD(device_detach,	pl061_detach),
 
+	/* Bus interface */
+	DEVMETHOD(bus_setup_intr,	bus_generic_setup_intr),
+	DEVMETHOD(bus_activate_resource,	bus_generic_activate_resource),
+	DEVMETHOD(bus_deactivate_resource,	bus_generic_deactivate_resource),
+
 	/* GPIO protocol */
 	DEVMETHOD(gpio_get_bus,		pl061_get_bus),
 	DEVMETHOD(gpio_pin_max,		pl061_pin_max),



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