.irq_enable = 1,
.poll_delay_ms = 30,
.init_platform_hw = lis3dh_init_platform_hw,
- .orientation = {-1, 0, 0, 0, 0, -1, 0, 1, 0},
+ .orientation = {-1, 0, 0, 0, 1, 0, 0, 0, -1},
};
#endif
-#if (defined(CONFIG_SENSORS_AK8963) || defined(CONFIG_SENSORS_AK8963_MODULE))
-static struct akm8963_platform_data akm_platform_data_8963 = {
- .gpio_DRDY = RK30_PIN3_PD7,
- .gpio_RST = 0,
- .layout = 3,
- .outbit = 1,
-};
+#if defined (CONFIG_COMPASS_AK8963)
+static struct sensor_platform_data akm8963_info =
+{
+ .type = SENSOR_TYPE_COMPASS,
+ .irq_enable = 1,
+ .poll_delay_ms = 30,
+ .m_layout =
+ {
+ {
+ {0, 1, 0},
+ {1, 0, 0},
+ {0, 0, -1},
+ },
+
+ {
+ {1, 0, 0},
+ {0, 1, 0},
+ {0, 0, 1},
+ },
+
+ {
+ {0, -1, 0},
+ {-1, 0, 0},
+ {0, 0, -1},
+ },
+
+ {
+ {1, 0, 0},
+ {0, 1, 0},
+ {0, 0, 1},
+ },
+ }
+};
+
#endif
#if defined(CONFIG_LS_PHOTORESISTOR)
.platform_data = &lis3dh_info,
},
#endif
-#if defined (CONFIG_SENSORS_AK8963)
- {
- .type = "akm8963",
- .addr = 0x0d,
- .flags = I2C_CLIENT_WAKE,
- .irq = RK30_PIN3_PD7,
- .platform_data = &akm_platform_data_8963,
- },
+#if defined (CONFIG_COMPASS_AK8963)
+ {
+ .type = "ak8963",
+ .addr = 0x0d,
+ .flags = 0,
+ .irq = RK30_PIN3_PD7,
+ .platform_data = &akm8963_info,
+ },
#endif
+
#if defined (CONFIG_LS_PHOTORESISTOR)
{
.type = "ls_photoresistor",