summaryrefstree
path: root/kernel/drivers/pinctrl/secgpio_dvs.h
blob: a38cef4a8bee38c79800788c7c1d79850098a959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * secgpio_dvs.h -- Samsung GPIO debugging and verification system
 */

#ifndef __SECGPIO_DVS_H
#define __SECGPIO_DVS_H

#include <linux/types.h>

enum gdvs_phone_status {
	PHONE_INIT = 0,
	PHONE_SLEEP,
	GDVS_PHONE_STATUS_MAX
};

struct gpiomap_result_t {
	unsigned char *init;
	unsigned char *sleep;
};

struct gpio_dvs_t {
	struct gpiomap_result_t *result;
	unsigned int count;
	bool check_sleep;
	void (*check_gpio_status)(unsigned char phonestate);
	int (*get_nr_gpio)(void);
};

void gpio_dvs_check_initgpio(void);
void gpio_dvs_check_sleepgpio(void);

/* list of all exported SoC specific data */
extern struct gpio_dvs_t exynos5422_secgpio_dvs;
extern int exynos5422_secgpio_get_nr_gpio(void);

extern struct gpio_dvs_t exynos5430_secgpio_dvs;
extern int exynos5430_secgpio_get_nr_gpio(void);

extern struct gpio_dvs_t exynos5433_secgpio_dvs;
extern int exynos5433_secgpio_get_nr_gpio(void);

extern struct gpio_dvs_t exynos7420_secgpio_dvs;
extern int exynos7420_secgpio_get_nr_gpio(void);
#endif /* __SECGPIO_DVS_H */