Gpio driver for calypso

Michal Demin michal.demin at gmail.com
Sat Jan 29 16:48:11 UTC 2011


Hello,

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/0ca33393/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/0ca33393/attachment-0001.obj>


More information about the baseband-devel mailing list