1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/sys/dev/gpio
Ganbold Tsagaankhuu 3a9ac40382 This implements default-state support as described in:
https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-gpio.txt

Without this booting the VSATV102 causes the blue "working" led to turn
off when the kernel starts up. With this the led (which is turned on by
the firmware) stays on since that's the default state specified in the FDT.

Expanded the meaning of the led_create_state state parameter in order
to implement support for "keep". The original values were:

== 0             Off
!= 0             On

The new values are:

== -1            don't change / keep current setting
== 0             Off
!= -1 && != 0    On

This should have no effect on acpi_asus_attach which only calls
led_create_state with state set to 1. Updated acpi_ibm_attach
in order to avoid surprises.

Differential Revision:	https://reviews.freebsd.org/D2615
Submitted by:	John Wehle
Reviewed by:	gonzo, loos
2015-05-24 07:45:42 +00:00
..
gpio_if.m Implement a new method to retrieve the gpiobus reference from a GPIO 2015-01-31 15:50:19 +00:00
gpiobus_if.m Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpiobus.c Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpiobusvar.h Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpioc.c Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpioiic.c Fix the gpiobus locking by using a more sane model where it isn't necessary 2014-10-31 19:15:14 +00:00
gpioled.c This implements default-state support as described in: 2015-05-24 07:45:42 +00:00
ofw_gpiobus.c Provide the number of interrupt resources added to the list 2015-05-15 13:55:18 +00:00