summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/board-omap3h1.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3h1.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3h1.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/board-omap3h1.c b/arch/arm/mach-omap2/board-omap3h1.c
index 19fbe3b09f9..f760b2e55c2 100644
--- a/arch/arm/mach-omap2/board-omap3h1.c
+++ b/arch/arm/mach-omap2/board-omap3h1.c
@@ -21,6 +21,7 @@
#include <linux/io.h>
#include <linux/opp.h>
#include <linux/cpu.h>
+#include <linux/mpu.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
@@ -47,6 +48,7 @@
#include "common-board-devices.h"
#define NAND_CS 0
+#define MPUIRQ_GPIO 31
static struct mtd_partition omap3h1_nand_partitions[] = {
/* All the partition sizes are listed in terms of NAND block size */
@@ -94,7 +96,21 @@ static struct mtd_partition omap3h1_nand_partitions[] = {
},
};
+static struct mpu_platform_data mpu_data = {
+ .int_config = 0x00,
+ .level_shifter = 0,
+ .orientation = { -1, 0, 0,
+ 0, 1, 0,
+ 0, 0, -1 },
+};
+
static struct i2c_board_info __initdata omap3h1_i2c1_board_info[] = {
+ {
+ I2C_BOARD_INFO("mpu6515", 0x68),
+ // This is needed for the interrupt wake. IH_GPIO_BASE changed in 3.10 kernel
+ //.irq = (IH_GPIO_BASE + MPUIRQ_GPIO),
+ .platform_data = &mpu_data,
+ },
};
static int __init omap3_h1_i2c_init(void)
@@ -135,6 +151,3 @@ MACHINE_START(OMAP3_H1, "Olio OMAP3 H1 Board")
//.dt_compat = omap3_h1_boards_compat,
.restart = omap3xxx_restart,
MACHINE_END
-
-
-