[PATCH] Gpio driver for calypso

Michal Demin michal.demin at gmail.com
Sat Jan 29 17:04:17 UTC 2011


I have created few patches that aim to add abstraction for gpio
handling. First patch adds functions:
gpio_config - configure gpio as input/output
gpio_read - read state of gpio(s)
gpio_write - write/toggle state of gpio(s)
gpio_set_handler - enables interrupt on given gpio.
Also changes board init files to make them more sane :-)

Second patch adds interrupt demuxing and masking into keypad driver as
gpio and keypad are handled by the same peripheral.
It would make sense to split the keypad driver into calypso-specific
and generic stuff once there is support for other chipsets.

Also note that interrupt levels in datasheet are active low (p.120),
my testing shows otherwise.

 Michal Demin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-GPIO-driver-for-Calypso.patch
Type: application/octet-stream
Size: 9811 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110129/1344495b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-interrupt-support-for-GPIOs.patch
Type: application/octet-stream
Size: 4645 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110129/1344495b/attachment-0001.obj>

More information about the baseband-devel mailing list