diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-11-11 20:18:33 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-11-11 20:18:33 +0000 |
commit | 54873b4cd6c691e7135ac9647afc5d54875d8a2c (patch) | |
tree | bebdcfda44da8f10d45016143d5d26b87f3aa465 /sys/arm/conf | |
parent | 19da400c6428b54fa989d98146798f9746d426d0 (diff) | |
download | src-54873b4cd6c691e7135ac9647afc5d54875d8a2c.tar.gz src-54873b4cd6c691e7135ac9647afc5d54875d8a2c.zip |
Add a GPIO driver for the Gateworks Cambria platform.
The external gpio pins are connected to a PLD on the i2c bus, unfortunatley
this device does not conform by failing to send an ack after each byte written.
The iicbb driver will abort the transfer when the address is not ack'd and it
would introduce a lot of churn to be able to pass a flag down to
iicbb_start/iicbb_write. Instead we do bad things by grabbing the iicbus but
then doing our own bit banging.
Notes
Notes:
svn path=/head/; revision=215142
Diffstat (limited to 'sys/arm/conf')
-rw-r--r-- | sys/arm/conf/CAMBRIA | 4 | ||||
-rw-r--r-- | sys/arm/conf/CAMBRIA.hints | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm/conf/CAMBRIA b/sys/arm/conf/CAMBRIA index 174a7c785a8f..ed16ed83fab1 100644 --- a/sys/arm/conf/CAMBRIA +++ b/sys/arm/conf/CAMBRIA @@ -90,6 +90,10 @@ device ad7418 # AD7418 on I2C bus device cambria_fled # Font Panel LED on I2C bus device cambria_led # 8-LED latch +device gpio +device gpioled +device cambria_gpio # GPIO pins on J11 + device ata device atadisk # ATA disk drives device avila_ata # Gateworks CF/IDE support diff --git a/sys/arm/conf/CAMBRIA.hints b/sys/arm/conf/CAMBRIA.hints index 6a1f889349d2..f727c367ff99 100644 --- a/sys/arm/conf/CAMBRIA.hints +++ b/sys/arm/conf/CAMBRIA.hints @@ -54,6 +54,10 @@ hint.fled.0.addr=0x5a # Octal LED Latch hint.led_cambria.0.at="ixp0" +# GPIO pins +hint.gpio_cambria.0.at="iicbus0" +hint.gpio_cambria.0.addr=0x56 + # Analog Devices AD7418 temperature sensor hint.ad7418.0.at="iicbus0" hint.ad7418.0.addr=0x50 |