0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __DT_CS42L42_H
0013 #define __DT_CS42L42_H
0014
0015
0016 #define CS42L42_HPOUT_LOAD_1NF 0
0017 #define CS42L42_HPOUT_LOAD_10NF 1
0018
0019
0020 #define CS42L42_HPOUT_CLAMP_EN 0
0021 #define CS42L42_HPOUT_CLAMP_DIS 1
0022
0023
0024 #define CS42L42_TS_INV_DIS 0
0025 #define CS42L42_TS_INV_EN 1
0026
0027
0028 #define CS42L42_TS_DBNCE_0 0
0029 #define CS42L42_TS_DBNCE_125 1
0030 #define CS42L42_TS_DBNCE_250 2
0031 #define CS42L42_TS_DBNCE_500 3
0032 #define CS42L42_TS_DBNCE_750 4
0033 #define CS42L42_TS_DBNCE_1000 5
0034 #define CS42L42_TS_DBNCE_1250 6
0035 #define CS42L42_TS_DBNCE_1500 7
0036
0037
0038 #define CS42L42_BTN_DET_INIT_DBNCE_MIN 0
0039 #define CS42L42_BTN_DET_INIT_DBNCE_DEFAULT 100
0040 #define CS42L42_BTN_DET_INIT_DBNCE_MAX 200
0041
0042 #define CS42L42_BTN_DET_EVENT_DBNCE_MIN 0
0043 #define CS42L42_BTN_DET_EVENT_DBNCE_DEFAULT 10
0044 #define CS42L42_BTN_DET_EVENT_DBNCE_MAX 20
0045
0046
0047 #define CS42L42_NUM_BIASES 4
0048
0049 #define CS42L42_HS_DET_LEVEL_15 0x0F
0050 #define CS42L42_HS_DET_LEVEL_8 0x08
0051 #define CS42L42_HS_DET_LEVEL_4 0x04
0052 #define CS42L42_HS_DET_LEVEL_1 0x01
0053
0054 #define CS42L42_HS_DET_LEVEL_MIN 0
0055 #define CS42L42_HS_DET_LEVEL_MAX 0x3F
0056
0057
0058
0059 #define CS42L42_HSBIAS_RAMP_FAST_RISE_SLOW_FALL 0
0060 #define CS42L42_HSBIAS_RAMP_FAST 1
0061 #define CS42L42_HSBIAS_RAMP_SLOW 2
0062 #define CS42L42_HSBIAS_RAMP_SLOWEST 3
0063
0064 #define CS42L42_HSBIAS_RAMP_TIME0 10
0065 #define CS42L42_HSBIAS_RAMP_TIME1 40
0066 #define CS42L42_HSBIAS_RAMP_TIME2 90
0067 #define CS42L42_HSBIAS_RAMP_TIME3 170
0068
0069 #endif