summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2012-03-12 22:39:20 +0800
committerLily Zhang <r58066@freescale.com>2012-03-26 14:44:27 +0800
commit9681c19cc9f04584773b297a01a205b0f146ba0b (patch)
tree736a816afafa82035a85c0952789c0d352076fb7 /arch
parent94642f3235907f905149f3e0a1f7471f8a7c9324 (diff)
ENGR00177787 mx6 sabreauto: add light sensor isl29023 support
Add light sensor isl29023 support Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c10
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.h3
-rw-r--r--arch/arm/mach-mx6/board-mx6solo_sabreauto.h3
3 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index bea516db8f8f..794debe986d9 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -105,6 +105,7 @@
#define SABREAUTO_I2C3_STEER IMX_GPIO_NR(5, 4)
#define SABREAUTO_ANDROID_VOLDOWN IMX_GPIO_NR(5, 14)
#define SABREAUTO_PMIC_INT IMX_GPIO_NR(5, 16)
+#define SABREAUTO_ALS_INT IMX_GPIO_NR(5, 17)
#define SABREAUTO_SD1_WP IMX_GPIO_NR(5, 20)
#define SABREAUTO_CSI0_PWN IMX_GPIO_NR(5, 23)
#define SABREAUTO_USB_HOST1_OC IMX_GPIO_NR(5, 0)
@@ -609,6 +610,10 @@ static struct mxc_audio_codec_platform_data cs42888_data = {
SNDRV_PCM_RATE_192000),
};
+static struct fsl_mxc_lightsensor_platform_data ls_data = {
+ .rext = 499,
+};
+
static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {
{
I2C_BOARD_INFO("max7310", 0x30),
@@ -626,6 +631,11 @@ static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {
I2C_BOARD_INFO("ov3640", 0x3c),
.platform_data = (void *)&camera_data,
},
+ {
+ I2C_BOARD_INFO("isl29023", 0x44),
+ .irq = gpio_to_irq(SABREAUTO_ALS_INT),
+ .platform_data = &ls_data,
+ },
};
static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.h b/arch/arm/mach-mx6/board-mx6q_sabreauto.h
index 076ca9c3b727..045cef028736 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.h
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.h
@@ -138,7 +138,8 @@ static iomux_v3_cfg_t mx6q_sabreauto_pads[] = {
MX6Q_PAD_DISP0_DAT18__IPU1_DISP0_DAT_18,
MX6Q_PAD_DISP0_DAT19__IPU1_DISP0_DAT_19,
MX6Q_PAD_DISP0_DAT21__IPU1_DISP0_DAT_21,
- MX6Q_PAD_DISP0_DAT23__IPU1_DISP0_DAT_23,
+ /* LITE_SENS_INT_B */
+ MX6Q_PAD_DISP0_DAT23__GPIO_5_17,
/*PMIC INT*/
MX6Q_PAD_DISP0_DAT22__GPIO_5_16,
diff --git a/arch/arm/mach-mx6/board-mx6solo_sabreauto.h b/arch/arm/mach-mx6/board-mx6solo_sabreauto.h
index 17d7313900f0..b50b3144e175 100644
--- a/arch/arm/mach-mx6/board-mx6solo_sabreauto.h
+++ b/arch/arm/mach-mx6/board-mx6solo_sabreauto.h
@@ -139,7 +139,8 @@ static iomux_v3_cfg_t mx6dl_sabreauto_pads[] = {
MX6DL_PAD_DISP0_DAT18__IPU1_DISP0_DAT_18,
MX6DL_PAD_DISP0_DAT19__IPU1_DISP0_DAT_19,
MX6DL_PAD_DISP0_DAT21__IPU1_DISP0_DAT_21,
- MX6DL_PAD_DISP0_DAT23__IPU1_DISP0_DAT_23,
+ /* LITE_SENS_INT_B */
+ MX6DL_PAD_DISP0_DAT23__GPIO_5_17,
/*PMIC INT*/
MX6DL_PAD_DISP0_DAT22__GPIO_5_16,