summaryrefslogtreecommitdiffstats
path: root/sys/arm/xscale/ixp425/avila_gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r274670, r274671, r276168:loos2015-02-141-9/+1
| | | | | | | | | | | | | | Moves all the duplicate code to a single function. Verify for invalid modes and unwanted flags before pass the new flags to driver. Make gpio_default_map_gpios() static. No functional changes. Improves the GPIO API description a little bit. gpio_pin_max must return the maximum supported pin number and not the total number of pins on the system.
* MFC r273799:loos2015-02-141-2/+3
| | | | | | | | Make the GPIO children attach to the first unit available and not only to unit 0. This fix a bug where a GPIO controller could fail to attach its children (gpioc and gpiobus) if another GPIO driver attach first.
* Fix undefined behaviour in several gpio_pin_setflags() routines (underdim2013-04-131-2/+2
| | | | | | | | | sys/arm and sys/mips), squelching the clang 3.3 warnings about this. Noticed by: tinderbox and many irate spectators Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> PR: kern/177759 MFC after: 3 days
* trim trailing spaces that have accumulated over the years (these filesimp2012-06-131-1/+1
| | | | served as the basis for too many other platforms).
* Add missing newbus glue, this has never attached properly to gpiobus.thompsa2011-10-051-0/+5
|
* IXP4XX_GPIO_{,UN}LOCK() don't take args. Remove the sc here to makeimp2010-12-231-10/+10
| | | | this compile again.
* Provide a mutex around the read/modify/write of the IXP425_GPIO_*thompsa2010-11-141-31/+11
| | | | registers. Giant was used in some places, but not all.
* Hook up the five gpio pins on the Avila board to the gpio framework. There arethompsa2010-11-071-0/+380
actually 16 I/O lines but the other ones are used for system devices and interrupts. The IXP4XX platform can set interrupts on these pins for high/low/rising/falling/transitional but this is not implemented yet. The Cambria has the same interface but as all the pins are assigned to system functions the gpio header is toggled via a PLD on the i2c bus and is not supported by this commit.
OpenPOWER on IntegriCloud