.platform_data = &mma8452_info,
},
#endif
-
-};
-#endif
-
-#ifdef CONFIG_I2C1_RK29
-static struct i2c_board_info __initdata board_i2c1_devices[] = {
-#if defined (CONFIG_RK1000_CONTROL1)
- {
- .type = "rk1000_control",
- .addr = 0x40,
- .flags = 0,
- },
-#endif
#if defined (CONFIG_SENSORS_AK8973)
{
.type = "ak8973",
- .addr = 0x1c,
+ .addr = 0x1d,
.flags = 0,
.irq = RK29_PIN4_PA1,
},
#if defined (CONFIG_SENSORS_AK8975)
{
.type = "ak8975",
- .addr = 0x1c,
+ .addr = 0x1d,
.flags = 0,
.irq = RK29_PIN4_PA1,
},
};
#endif
+#ifdef CONFIG_I2C1_RK29
+static struct i2c_board_info __initdata board_i2c1_devices[] = {
+#if defined (CONFIG_RK1000_CONTROL1)
+ {
+ .type = "rk1000_control",
+ .addr = 0x40,
+ .flags = 0,
+ },
+#endif
+};
+#endif
+
#ifdef CONFIG_I2C2_RK29
static struct i2c_board_info __initdata board_i2c2_devices[] = {
#if defined (CONFIG_HANNSTAR_P1003)
.platform_data = &mma8452_info,
},
#endif
-
-};
-#endif
-
-#ifdef CONFIG_I2C1_RK29
-static struct i2c_board_info __initdata board_i2c1_devices[] = {
-#if defined (CONFIG_RK1000_CONTROL1)
- {
- .type = "rk1000_control",
- .addr = 0x40,
- .flags = 0,
- },
-#endif
#if defined (CONFIG_SENSORS_AK8973)
{
.type = "ak8973",
- .addr = 0x1c,
+ .addr = 0x1d,
.flags = 0,
- .irq = RK29_PIN4_PA1,
+ .irq = RK29_PIN0_PA4,
},
#endif
#if defined (CONFIG_SENSORS_AK8975)
{
.type = "ak8975",
- .addr = 0x1c,
+ .addr = 0x1d,
+ .flags = 0,
+ .irq = RK29_PIN0_PA4,
+ },
+#endif
+};
+#endif
+
+#ifdef CONFIG_I2C1_RK29
+static struct i2c_board_info __initdata board_i2c1_devices[] = {
+#if defined (CONFIG_RK1000_CONTROL1)
+ {
+ .type = "rk1000_control",
+ .addr = 0x40,
.flags = 0,
- .irq = RK29_PIN4_PA1,
},
#endif
#if defined (CONFIG_ANX7150)
platform_set_drvdata(pdev, host);
mmc->ops = &rk29_sdmmc_ops[pdev->id];
mmc->f_min = host->bus_hz/510;
- mmc->f_max = host->bus_hz/20; //2; ///20; //max f is clock to mmc_clk/2
+ mmc->f_max = host->bus_hz/2; //2; ///20; //max f is clock to mmc_clk/2
mmc->ocr_avail = pdata->host_ocr_avail;
mmc->caps = pdata->host_caps;
mmc->max_phys_segs = 64;