diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-23 03:31:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-23 03:31:06 -0500 |
commit | 51c24aaacaea90c8e87f1dec75a2ac7622b593f8 (patch) | |
tree | 9f54936c87764bef75e97395cb56b7d1e0df24c6 /arch/sh/boards/mach-ecovec24/setup.c | |
parent | 4276e47e2d1c85a2477caf0d22b91c4f2377fba8 (diff) | |
parent | 6be325719b3e54624397e413efd4b33a997e55a3 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'arch/sh/boards/mach-ecovec24/setup.c')
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 194aaca22d47..5c246289b4f0 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -128,8 +128,6 @@ static struct platform_device nor_flash_device = { | |||
128 | 128 | ||
129 | /* SH Eth */ | 129 | /* SH Eth */ |
130 | #define SH_ETH_ADDR (0xA4600000) | 130 | #define SH_ETH_ADDR (0xA4600000) |
131 | #define SH_ETH_MAHR (SH_ETH_ADDR + 0x1C0) | ||
132 | #define SH_ETH_MALR (SH_ETH_ADDR + 0x1C8) | ||
133 | static struct resource sh_eth_resources[] = { | 131 | static struct resource sh_eth_resources[] = { |
134 | [0] = { | 132 | [0] = { |
135 | .start = SH_ETH_ADDR, | 133 | .start = SH_ETH_ADDR, |
@@ -355,6 +353,10 @@ static struct i2c_board_info i2c1_devices[] = { | |||
355 | { | 353 | { |
356 | I2C_BOARD_INFO("r2025sd", 0x32), | 354 | I2C_BOARD_INFO("r2025sd", 0x32), |
357 | }, | 355 | }, |
356 | { | ||
357 | I2C_BOARD_INFO("lis3lv02d", 0x1c), | ||
358 | .irq = 33, | ||
359 | } | ||
358 | }; | 360 | }; |
359 | 361 | ||
360 | /* KEYSC */ | 362 | /* KEYSC */ |
@@ -509,6 +511,7 @@ static struct platform_device sdhi1_device = { | |||
509 | 511 | ||
510 | #else | 512 | #else |
511 | 513 | ||
514 | /* MMC SPI */ | ||
512 | static int mmc_spi_get_ro(struct device *dev) | 515 | static int mmc_spi_get_ro(struct device *dev) |
513 | { | 516 | { |
514 | return gpio_get_value(GPIO_PTY6); | 517 | return gpio_get_value(GPIO_PTY6); |
@@ -542,6 +545,7 @@ static struct spi_board_info spi_bus[] = { | |||
542 | }, | 545 | }, |
543 | }; | 546 | }; |
544 | 547 | ||
548 | /* MSIOF0 */ | ||
545 | static struct sh_msiof_spi_info msiof0_data = { | 549 | static struct sh_msiof_spi_info msiof0_data = { |
546 | .num_chipselect = 1, | 550 | .num_chipselect = 1, |
547 | }; | 551 | }; |
@@ -1115,6 +1119,10 @@ static int __init arch_setup(void) | |||
1115 | gpio_direction_output(GPIO_PTU0, 0); | 1119 | gpio_direction_output(GPIO_PTU0, 0); |
1116 | mdelay(20); | 1120 | mdelay(20); |
1117 | 1121 | ||
1122 | /* enable motion sensor */ | ||
1123 | gpio_request(GPIO_FN_INTC_IRQ1, NULL); | ||
1124 | gpio_direction_input(GPIO_FN_INTC_IRQ1); | ||
1125 | |||
1118 | /* enable I2C device */ | 1126 | /* enable I2C device */ |
1119 | i2c_register_board_info(0, i2c0_devices, | 1127 | i2c_register_board_info(0, i2c0_devices, |
1120 | ARRAY_SIZE(i2c0_devices)); | 1128 | ARRAY_SIZE(i2c0_devices)); |