#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/spinlock.h>
#include <linux/io.h>
Go to the source code of this file.
#define MSP71XX_CFG_OFFSET |
( |
|
gpio | ) |
(4 * (gpio)) |
#define MSP71XX_GPIO_BANK |
( |
|
name, |
|
|
|
dr, |
|
|
|
cr, |
|
|
|
base_gpio, |
|
|
|
num_gpio |
|
) |
| |
Value:{ \
.chip = { \
.direction_input = msp71xx_direction_input, \
.direction_output = msp71xx_direction_output, \
.get = msp71xx_gpio_get, \
.set = msp71xx_gpio_set, \
.base = base_gpio, \
.ngpio = num_gpio \
}, \
}
Definition at line 174 of file gpio.c.
#define MSP71XX_GPIO_BASE 0x0B8400000L |
#define MSP71XX_GPIO_INPUT 0x01 |
#define MSP71XX_GPIO_OUTPUT 0x08 |
int msp71xx_set_output_drive |
( |
unsigned |
gpio, |
|
|
int |
value |
|
) |
| |