summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Sierra <b18039@freescale.com>2012-10-18 22:01:39 -0500
committerAlejandro Sierra <b18039@freescale.com>2012-10-18 22:18:06 -0500
commit3f155989087b6ffb5102f50c7ed6487b3faf7ff2 (patch)
treeb7b38c9ae8d4d9cb0276fb2bd5927b21251f1ee9
parent5a4ed2abd1a341d835ce3470974b0a5137baeeb7 (diff)
ENGR00230377 Sabreauto: Add eCompass support
Add eCompass support on Sabreauto platform Signed-off-by: Alejandro Sierra <b18039@freescale.com>
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c7
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index 46ea21b01a47..a166c42b30b8 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -95,6 +95,7 @@
#define SABREAUTO_ANDROID_MENU IMX_GPIO_NR(2, 12)
#define SABREAUTO_ANDROID_VOLUP IMX_GPIO_NR(2, 15)
#define SABREAUTO_CAP_TCH_INT IMX_GPIO_NR(2, 28)
+#define SABREAUTO_eCOMPASS_INT IMX_GPIO_NR(2, 29)
#define SABREAUTO_ECSPI1_CS1 IMX_GPIO_NR(3, 19)
#define SABREAUTO_DISP0_PWR IMX_GPIO_NR(3, 24)
#define SABREAUTO_DISP0_I2C_EN IMX_GPIO_NR(3, 28)
@@ -136,6 +137,7 @@ extern char *soc_reg_id;
extern char *pu_reg_id;
static int mma8451_position = 3;
+static int mag3110_position = 2;
static struct clk *sata_clk;
static int mipi_sensor;
static int can0_enable;
@@ -663,6 +665,11 @@ static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {
.platform_data = &ls_data,
},
{
+ I2C_BOARD_INFO("mag3110", 0x0e),
+ .irq = gpio_to_irq(SABREAUTO_eCOMPASS_INT),
+ .platform_data = (void *)&mag3110_position,
+ },
+ {
I2C_BOARD_INFO("mma8451", 0x1c),
.platform_data = (void *)&mma8451_position,
},
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.h b/arch/arm/mach-mx6/board-mx6q_sabreauto.h
index 9b5af3c2a68c..88cb7ff7456f 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.h
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.h
@@ -172,6 +172,9 @@ static iomux_v3_cfg_t mx6q_sabreauto_pads[] = {
/* DISP0 RESET */
MX6Q_PAD_EIM_WAIT__GPIO_5_0,
+ /* eCompass int */
+ MX6Q_PAD_EIM_EB1__GPIO_2_29,
+
/* SPDIF */
MX6Q_PAD_KEY_COL3__SPDIF_IN1,