summaryrefslogtreecommitdiff
path: root/include/linux/gpio/aspeed.h
blob: 9a547e66c8c45c9de765c05e6e89b4ed800ae6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __GPIO_ASPEED_H
#define __GPIO_ASPEED_H

#include <linux/types.h>

struct gpio_desc;

struct aspeed_gpio_copro_ops {
	int (*request_access)(void *data);
	int (*release_access)(void *data);
};

int aspeed_gpio_copro_grab_gpio(struct gpio_desc *desc,
				u16 *vreg_offset, u16 *dreg_offset, u8 *bit);
int aspeed_gpio_copro_release_gpio(struct gpio_desc *desc);
int aspeed_gpio_copro_set_ops(const struct aspeed_gpio_copro_ops *ops, void *data);


#endif /* __GPIO_ASPEED_H */