aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c8
-rw-r--r--arch/sh/tools/Makefile2
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index a6b223332d1..a49cce16e78 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -351,6 +351,10 @@ static struct i2c_board_info i2c1_devices[] = {
351 { 351 {
352 I2C_BOARD_INFO("r2025sd", 0x32), 352 I2C_BOARD_INFO("r2025sd", 0x32),
353 }, 353 },
354 {
355 I2C_BOARD_INFO("lis3lv02d", 0x1c),
356 .irq = 33,
357 }
354}; 358};
355 359
356/* KEYSC */ 360/* KEYSC */
@@ -1113,6 +1117,10 @@ static int __init arch_setup(void)
1113 gpio_direction_output(GPIO_PTU0, 0); 1117 gpio_direction_output(GPIO_PTU0, 0);
1114 mdelay(20); 1118 mdelay(20);
1115 1119
1120 /* enable motion sensor */
1121 gpio_request(GPIO_FN_INTC_IRQ1, NULL);
1122 gpio_direction_input(GPIO_FN_INTC_IRQ1);
1123
1116 /* enable I2C device */ 1124 /* enable I2C device */
1117 i2c_register_board_info(0, i2c0_devices, 1125 i2c_register_board_info(0, i2c0_devices,
1118 ARRAY_SIZE(i2c0_devices)); 1126 ARRAY_SIZE(i2c0_devices));
diff --git a/arch/sh/tools/Makefile b/arch/sh/tools/Makefile
index 558a56bcc7c..2082af1f3fe 100644
--- a/arch/sh/tools/Makefile
+++ b/arch/sh/tools/Makefile
@@ -13,4 +13,4 @@
13include/generated/machtypes.h: $(src)/gen-mach-types $(src)/mach-types 13include/generated/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
14 @echo ' Generating $@' 14 @echo ' Generating $@'
15 $(Q)mkdir -p $(dir $@) 15 $(Q)mkdir -p $(dir $@)
16 $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; } 16 $(Q)LC_ALL=C $(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }