blob: 4aab92aac21cb1a61db530fb696e984c22ddbdaf (
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
45
46
47
48
49
50
51
52
53
|
#ifndef _LINUX_CYPRESS_TOUCHKEY_I2C_H
#define _LINUX_CYPRESS_TOUCHKEY_I2C_H
#include <linux/types.h>
#ifdef CONFIG_HAS_EARLYSUSPEND
#include <linux/earlysuspend.h>
#endif
/* LDO Regulator */
#define TK_REGULATOR_NAME "vtouch_1.8v"
/* LDO Regulator */
#define TK_LED_REGULATOR_NAME "vtouch_3.3v"
#define TK_CORE_REGULATOR_NAME "vtouch_3.3v"
#define TK_IO_REGULATOR_NAME "vtouch_1.8v"
/* LED LDO Type*/
#define LED_LDO_WITH_REGULATOR
#define CYPRESS_IC_20055 20055
#define CYPRESS_IC_20075 20075
#define CYPRESS_IC_MBR3155 3155
struct touchkey_platform_data {
int gpio_sda;
int gpio_scl;
int gpio_int;
int sub_det;
u32 irq_gpio_flags;
u32 sda_gpio_flags;
u32 scl_gpio_flags;
u32 sub_det_flags;
bool i2c_gpio;
u32 stabilizing_time;
u32 ic_type;
bool ap_io_power;
bool boot_on_ldo;
bool led_by_ldo;
bool one_keypad;
bool glove_mode_keep_status;
char *fw_path;
void (*init_platform_hw)(void);
int (*suspend) (void);
int (*resume) (void);
int (*power_on)(void *, bool);
int (*led_power_on) (void *, bool);
int (*reset_platform_hw)(void);
void (*register_cb)(void *);
};
#endif /* _LINUX_CYPRESS_TOUCHKEY_I2C_H */
|