basic_mmio_gpio: support direction registers
authorJamie Iles <jamie@jamieiles.com>
Fri, 20 May 2011 06:40:17 +0000 (00:40 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:40:17 +0000 (00:40 -0600)
commit31029116ebc1f2481bd2380437e9f7a18f18dca5
tree09f616736afbc6ffefc88a7662c3bd1871e58f9d
parentdd86a0cc5e35161538c10e35eb85e2ad0adfe14d
basic_mmio_gpio: support direction registers

Most controllers require the direction of a GPIO to be set by writing to
a direction register.  Add support for either an input direction
register or an output direction register.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/basic_mmio_gpio.c