forked from msm8916-mainline/lk2nd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlk2nd.h
35 lines (27 loc) · 727 Bytes
/
lk2nd.h
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
#ifndef DT_LK2ND_H
#define DT_LK2ND_H
/* keys.h */
#define KEY_VOLUMEUP 0x115
#define KEY_VOLUMEDOWN 0x116
#define KEY_HOME 0x122
#define KEY_BACK 0x123
#define KEY_MENU 0x124
/* platform/gpio.h */
#define GPIO_NO_PULL 0
#define GPIO_PULL_DOWN 1
#define GPIO_KEEPER 2
#define GPIO_PULL_UP 3
/* pm8x41.h */
#define PM_GPIO_PULL_UP_30 0
#define PM_GPIO_PULL_UP_1_5 1
#define PM_GPIO_PULL_UP_31_5 2
/* 1.5uA + 30uA boost */
#define PM_GPIO_PULL_UP_1_5_30 3
#define PM_GPIO_PULLDOWN_10 4
#define PM_GPIO_NO_PULL 5
#define PM_GPIO(x) (x | (1 << 16))
#define GPIO_ACTIVE_LOW 0
#define GPIO_ACTIVE_HIGH (1 << 8)
#define LK2ND_KEY_RESIN (2 << 16) 0
#define LK2ND_KEY_PWR (3 << 16) 0
#endif