add gpiolib support to ucb1x00
The old access methods to the gpios will be removed when all users has been converted. (mainly ucb1x00-ts)
This commit is contained in:
parent
cc64717279
commit
9ca3dc805c
5 changed files with 91 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ struct mcp {
|
|||
dma_device_t dma_telco_rd;
|
||||
dma_device_t dma_telco_wr;
|
||||
struct device attached_device;
|
||||
int gpio_base;
|
||||
};
|
||||
|
||||
struct mcp_ops {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
#define UCB1200_H
|
||||
|
||||
#include <linux/mfd/mcp.h>
|
||||
#include <linux/gpio.h>
|
||||
|
||||
#define UCB_IO_DATA 0x00
|
||||
#define UCB_IO_DIR 0x01
|
||||
|
||||
|
|
@ -123,6 +125,7 @@ struct ucb1x00 {
|
|||
struct device dev;
|
||||
struct list_head node;
|
||||
struct list_head devs;
|
||||
struct gpio_chip gpio;
|
||||
};
|
||||
|
||||
struct ucb1x00_driver;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue