CAP1106: Fine tune params based on BODYSAR, add APP2MDM_SAR support, code refinement.
Change-Id: Ic7499b0dc1a5005cc6dfba29d061bd4164cd4a7a Signed-off-by: tryout_chen <tryout_chen@asus.com>
This commit is contained in:
committed by
Android Partner Code Review
parent
c6833ee6ee
commit
c7b57708c1
21
include/linux/i2c/cap1106.h
Normal file
21
include/linux/i2c/cap1106.h
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
#ifndef _LINUX_I2C_CAP1106_H
|
||||
#define _LINUX_I2C_CAP1106_H
|
||||
|
||||
#define CAP1106_I2C_NAME "cap1106"
|
||||
#define CAP1106_SAR_GPIO 1 /* APP2MDM_SAR */
|
||||
#define CAP1106_SAR_GPIO_NAME "APP2MDM_SAR"
|
||||
#define CAP1106_DET_GPIO 52 /* SAR_DET_3G */
|
||||
#define CAP1106_DET_GPIO_NAME "SAR_DET_3G"
|
||||
#define CAP1106_INIT_TABLE_SIZE 24
|
||||
|
||||
struct cap1106_i2c_platform_data {
|
||||
int app2mdm_enable;
|
||||
int sar_gpio;
|
||||
char *sar_gpio_name;
|
||||
int det_gpio;
|
||||
char *det_gpio_name;
|
||||
const unsigned char init_table[CAP1106_INIT_TABLE_SIZE];
|
||||
};
|
||||
|
||||
#endif /* _LINUX_I2C_CAP1106_H */
|
||||
Reference in New Issue
Block a user