summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/gpioiic.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken locking that I introduced in the previous commit.adrian2011-12-201-0/+2
|
* Remove these locks - they aren't strictly needed and cause measurableadrian2011-12-201-11/+0
| | | | | | | | | | | | | | | | | | | | performance issues. * Access to the GPIO bus is already locked by requesting and releasing the bus - thus the lock isn't really needed for each GPIO pin change. * Don't lock and unlock the GPIO bus for -each- i2c access - the i2c bus code is already doing this by calling the upper layer callback to request/release the bus. This thus locks the bus for the entirety of the transaction. TODO: * Further verify that everything is correctly requesting/ releasing the GPIO bus. * Look at how to lock the GPIO pin configuration stuff, potentially by locking/unlocking the bus at the gpiobus layer.
* Modify the GPIO i2c bus code to allow for arbitrary data/clockadrian2011-12-041-14/+22
| | | | | | | | | pins, rather than defaulting to 0 and 1. This way the pin order can be reversed. It is reversed with the TP-Link TL-WR1043nd. Submitted by: Stefan Bethke <stb@lassitu.de>
* Fix legal staff in GPIO sources:gonzo2010-09-291-10/+11
| | | | | | | | - license clause now contains "AUTHOR AND CONTRIBUTORS" instead of just "AUTHOR" - Add license/copyright to gpioc.c Spotted by: Edward Tomasz Napierala, Andrew Turner
* Initial GPIO bus support. Includes:gonzo2010-09-281-0/+245
- GPIO bus controller interface - GPIO bus interface - Implementation of GPIO led(4) compatible device - Implementation of iic(4) bus over GPIO (author: Luiz Otavio O Souza) Tested by: Luiz Otavio O Souza, Alexandr Rybalko
OpenPOWER on IntegriCloud