Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
adp5589.h File Reference

Go to the source code of this file.

Data Structures

struct  adp5589_gpi_map
 
struct  adp5589_kpad_platform_data
 
struct  adp5589_gpio_platform_data
 

Macros

#define ADP5589_KEYMAPSIZE   88
 
#define ADP5589_GPI_PIN_ROW0   97
 
#define ADP5589_GPI_PIN_ROW1   98
 
#define ADP5589_GPI_PIN_ROW2   99
 
#define ADP5589_GPI_PIN_ROW3   100
 
#define ADP5589_GPI_PIN_ROW4   101
 
#define ADP5589_GPI_PIN_ROW5   102
 
#define ADP5589_GPI_PIN_ROW6   103
 
#define ADP5589_GPI_PIN_ROW7   104
 
#define ADP5589_GPI_PIN_COL0   105
 
#define ADP5589_GPI_PIN_COL1   106
 
#define ADP5589_GPI_PIN_COL2   107
 
#define ADP5589_GPI_PIN_COL3   108
 
#define ADP5589_GPI_PIN_COL4   109
 
#define ADP5589_GPI_PIN_COL5   110
 
#define ADP5589_GPI_PIN_COL6   111
 
#define ADP5589_GPI_PIN_COL7   112
 
#define ADP5589_GPI_PIN_COL8   113
 
#define ADP5589_GPI_PIN_COL9   114
 
#define ADP5589_GPI_PIN_COL10   115
 
#define GPI_LOGIC1   116
 
#define GPI_LOGIC2   117
 
#define ADP5589_GPI_PIN_ROW_BASE   ADP5589_GPI_PIN_ROW0
 
#define ADP5589_GPI_PIN_ROW_END   ADP5589_GPI_PIN_ROW7
 
#define ADP5589_GPI_PIN_COL_BASE   ADP5589_GPI_PIN_COL0
 
#define ADP5589_GPI_PIN_COL_END   ADP5589_GPI_PIN_COL10
 
#define ADP5589_GPI_PIN_BASE   ADP5589_GPI_PIN_ROW_BASE
 
#define ADP5589_GPI_PIN_END   ADP5589_GPI_PIN_COL_END
 
#define ADP5589_GPIMAPSIZE_MAX   (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1)
 
#define ADP5585_KEYMAPSIZE   30
 
#define ADP5585_GPI_PIN_ROW0   37
 
#define ADP5585_GPI_PIN_ROW1   38
 
#define ADP5585_GPI_PIN_ROW2   39
 
#define ADP5585_GPI_PIN_ROW3   40
 
#define ADP5585_GPI_PIN_ROW4   41
 
#define ADP5585_GPI_PIN_ROW5   42
 
#define ADP5585_GPI_PIN_COL0   43
 
#define ADP5585_GPI_PIN_COL1   44
 
#define ADP5585_GPI_PIN_COL2   45
 
#define ADP5585_GPI_PIN_COL3   46
 
#define ADP5585_GPI_PIN_COL4   47
 
#define GPI_LOGIC   48
 
#define ADP5585_GPI_PIN_ROW_BASE   ADP5585_GPI_PIN_ROW0
 
#define ADP5585_GPI_PIN_ROW_END   ADP5585_GPI_PIN_ROW5
 
#define ADP5585_GPI_PIN_COL_BASE   ADP5585_GPI_PIN_COL0
 
#define ADP5585_GPI_PIN_COL_END   ADP5585_GPI_PIN_COL4
 
#define ADP5585_GPI_PIN_BASE   ADP5585_GPI_PIN_ROW_BASE
 
#define ADP5585_GPI_PIN_END   ADP5585_GPI_PIN_COL_END
 
#define ADP5585_GPIMAPSIZE_MAX   (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1)
 
#define ADP5589_SCAN_CYCLE_10ms   0
 
#define ADP5589_SCAN_CYCLE_20ms   1
 
#define ADP5589_SCAN_CYCLE_30ms   2
 
#define ADP5589_SCAN_CYCLE_40ms   3
 
#define RESET_PULSE_WIDTH_500us   0
 
#define RESET_PULSE_WIDTH_1ms   1
 
#define RESET_PULSE_WIDTH_2ms   2
 
#define RESET_PULSE_WIDTH_10ms   3
 
#define RESET_TRIG_TIME_0ms   (0 << 2)
 
#define RESET_TRIG_TIME_1000ms   (1 << 2)
 
#define RESET_TRIG_TIME_1500ms   (2 << 2)
 
#define RESET_TRIG_TIME_2000ms   (3 << 2)
 
#define RESET_TRIG_TIME_2500ms   (4 << 2)
 
#define RESET_TRIG_TIME_3000ms   (5 << 2)
 
#define RESET_TRIG_TIME_3500ms   (6 << 2)
 
#define RESET_TRIG_TIME_4000ms   (7 << 2)
 
#define RESET_PASSTHRU_EN   (1 << 5)
 
#define RESET1_POL_HIGH   (1 << 6)
 
#define RESET1_POL_LOW   (0 << 6)
 
#define RESET2_POL_HIGH   (1 << 7)
 
#define RESET2_POL_LOW   (0 << 7)
 
#define ADP_ROW(x)   (1 << (x))
 
#define ADP_COL(x)   (1 << (x + 8))
 
#define ADP5589_ROW_MASK   0xFF
 
#define ADP5589_COL_MASK   0xFF
 
#define ADP5589_COL_SHIFT   8
 
#define ADP5589_MAX_ROW_NUM   7
 
#define ADP5589_MAX_COL_NUM   10
 
#define ADP5585_ROW_MASK   0x3F
 
#define ADP5585_COL_MASK   0x1F
 
#define ADP5585_ROW_SHIFT   0
 
#define ADP5585_COL_SHIFT   6
 
#define ADP5585_MAX_ROW_NUM   5
 
#define ADP5585_MAX_COL_NUM   4
 
#define ADP5585_ROW(x)   (1 << ((x) & ADP5585_ROW_MASK))
 
#define ADP5585_COL(x)   (1 << (((x) & ADP5585_COL_MASK) + ADP5585_COL_SHIFT))
 

Macro Definition Documentation

#define ADP5585_COL (   x)    (1 << (((x) & ADP5585_COL_MASK) + ADP5585_COL_SHIFT))

Definition at line 145 of file adp5589.h.

#define ADP5585_COL_MASK   0x1F

Definition at line 138 of file adp5589.h.

#define ADP5585_COL_SHIFT   6

Definition at line 140 of file adp5589.h.

#define ADP5585_GPI_PIN_BASE   ADP5585_GPI_PIN_ROW_BASE

Definition at line 74 of file adp5589.h.

#define ADP5585_GPI_PIN_COL0   43

Definition at line 62 of file adp5589.h.

#define ADP5585_GPI_PIN_COL1   44

Definition at line 63 of file adp5589.h.

#define ADP5585_GPI_PIN_COL2   45

Definition at line 64 of file adp5589.h.

#define ADP5585_GPI_PIN_COL3   46

Definition at line 65 of file adp5589.h.

#define ADP5585_GPI_PIN_COL4   47

Definition at line 66 of file adp5589.h.

#define ADP5585_GPI_PIN_COL_BASE   ADP5585_GPI_PIN_COL0

Definition at line 71 of file adp5589.h.

#define ADP5585_GPI_PIN_COL_END   ADP5585_GPI_PIN_COL4

Definition at line 72 of file adp5589.h.

#define ADP5585_GPI_PIN_END   ADP5585_GPI_PIN_COL_END

Definition at line 75 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW0   37

Definition at line 56 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW1   38

Definition at line 57 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW2   39

Definition at line 58 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW3   40

Definition at line 59 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW4   41

Definition at line 60 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW5   42

Definition at line 61 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW_BASE   ADP5585_GPI_PIN_ROW0

Definition at line 69 of file adp5589.h.

#define ADP5585_GPI_PIN_ROW_END   ADP5585_GPI_PIN_ROW5

Definition at line 70 of file adp5589.h.

#define ADP5585_GPIMAPSIZE_MAX   (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1)

Definition at line 77 of file adp5589.h.

#define ADP5585_KEYMAPSIZE   30

Definition at line 54 of file adp5589.h.

#define ADP5585_MAX_COL_NUM   4

Definition at line 142 of file adp5589.h.

#define ADP5585_MAX_ROW_NUM   5

Definition at line 141 of file adp5589.h.

#define ADP5585_ROW (   x)    (1 << ((x) & ADP5585_ROW_MASK))

Definition at line 144 of file adp5589.h.

#define ADP5585_ROW_MASK   0x3F

Definition at line 137 of file adp5589.h.

#define ADP5585_ROW_SHIFT   0

Definition at line 139 of file adp5589.h.

#define ADP5589_COL_MASK   0xFF

Definition at line 123 of file adp5589.h.

#define ADP5589_COL_SHIFT   8

Definition at line 124 of file adp5589.h.

#define ADP5589_GPI_PIN_BASE   ADP5589_GPI_PIN_ROW_BASE

Definition at line 45 of file adp5589.h.

#define ADP5589_GPI_PIN_COL0   105

Definition at line 26 of file adp5589.h.

#define ADP5589_GPI_PIN_COL1   106

Definition at line 27 of file adp5589.h.

#define ADP5589_GPI_PIN_COL10   115

Definition at line 36 of file adp5589.h.

#define ADP5589_GPI_PIN_COL2   107

Definition at line 28 of file adp5589.h.

#define ADP5589_GPI_PIN_COL3   108

Definition at line 29 of file adp5589.h.

#define ADP5589_GPI_PIN_COL4   109

Definition at line 30 of file adp5589.h.

#define ADP5589_GPI_PIN_COL5   110

Definition at line 31 of file adp5589.h.

#define ADP5589_GPI_PIN_COL6   111

Definition at line 32 of file adp5589.h.

#define ADP5589_GPI_PIN_COL7   112

Definition at line 33 of file adp5589.h.

#define ADP5589_GPI_PIN_COL8   113

Definition at line 34 of file adp5589.h.

#define ADP5589_GPI_PIN_COL9   114

Definition at line 35 of file adp5589.h.

#define ADP5589_GPI_PIN_COL_BASE   ADP5589_GPI_PIN_COL0

Definition at line 42 of file adp5589.h.

#define ADP5589_GPI_PIN_COL_END   ADP5589_GPI_PIN_COL10

Definition at line 43 of file adp5589.h.

#define ADP5589_GPI_PIN_END   ADP5589_GPI_PIN_COL_END

Definition at line 46 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW0   97

Definition at line 18 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW1   98

Definition at line 19 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW2   99

Definition at line 20 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW3   100

Definition at line 21 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW4   101

Definition at line 22 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW5   102

Definition at line 23 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW6   103

Definition at line 24 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW7   104

Definition at line 25 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW_BASE   ADP5589_GPI_PIN_ROW0

Definition at line 40 of file adp5589.h.

#define ADP5589_GPI_PIN_ROW_END   ADP5589_GPI_PIN_ROW7

Definition at line 41 of file adp5589.h.

#define ADP5589_GPIMAPSIZE_MAX   (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1)

Definition at line 48 of file adp5589.h.

#define ADP5589_KEYMAPSIZE   88

Definition at line 16 of file adp5589.h.

#define ADP5589_MAX_COL_NUM   10

Definition at line 126 of file adp5589.h.

#define ADP5589_MAX_ROW_NUM   7

Definition at line 125 of file adp5589.h.

#define ADP5589_ROW_MASK   0xFF

Definition at line 122 of file adp5589.h.

#define ADP5589_SCAN_CYCLE_10ms   0

Definition at line 85 of file adp5589.h.

#define ADP5589_SCAN_CYCLE_20ms   1

Definition at line 86 of file adp5589.h.

#define ADP5589_SCAN_CYCLE_30ms   2

Definition at line 87 of file adp5589.h.

#define ADP5589_SCAN_CYCLE_40ms   3

Definition at line 88 of file adp5589.h.

#define ADP_COL (   x)    (1 << (x + 8))

Definition at line 121 of file adp5589.h.

#define ADP_ROW (   x)    (1 << (x))

Definition at line 120 of file adp5589.h.

#define GPI_LOGIC   48

Definition at line 67 of file adp5589.h.

#define GPI_LOGIC1   116

Definition at line 37 of file adp5589.h.

#define GPI_LOGIC2   117

Definition at line 38 of file adp5589.h.

#define RESET1_POL_HIGH   (1 << 6)

Definition at line 106 of file adp5589.h.

#define RESET1_POL_LOW   (0 << 6)

Definition at line 107 of file adp5589.h.

#define RESET2_POL_HIGH   (1 << 7)

Definition at line 108 of file adp5589.h.

#define RESET2_POL_LOW   (0 << 7)

Definition at line 109 of file adp5589.h.

#define RESET_PASSTHRU_EN   (1 << 5)

Definition at line 105 of file adp5589.h.

#define RESET_PULSE_WIDTH_10ms   3

Definition at line 94 of file adp5589.h.

#define RESET_PULSE_WIDTH_1ms   1

Definition at line 92 of file adp5589.h.

#define RESET_PULSE_WIDTH_2ms   2

Definition at line 93 of file adp5589.h.

#define RESET_PULSE_WIDTH_500us   0

Definition at line 91 of file adp5589.h.

#define RESET_TRIG_TIME_0ms   (0 << 2)

Definition at line 96 of file adp5589.h.

#define RESET_TRIG_TIME_1000ms   (1 << 2)

Definition at line 97 of file adp5589.h.

#define RESET_TRIG_TIME_1500ms   (2 << 2)

Definition at line 98 of file adp5589.h.

#define RESET_TRIG_TIME_2000ms   (3 << 2)

Definition at line 99 of file adp5589.h.

#define RESET_TRIG_TIME_2500ms   (4 << 2)

Definition at line 100 of file adp5589.h.

#define RESET_TRIG_TIME_3000ms   (5 << 2)

Definition at line 101 of file adp5589.h.

#define RESET_TRIG_TIME_3500ms   (6 << 2)

Definition at line 102 of file adp5589.h.

#define RESET_TRIG_TIME_4000ms   (7 << 2)

Definition at line 103 of file adp5589.h.