Chang wm8994 i2c3 to i2c0 in board of info.
authorChenJQ <chenjq@rock-chips.com>
Wed, 18 Aug 2010 01:29:50 +0000 (18:29 -0700)
committerChenJQ <chenjq@rock-chips.com>
Wed, 18 Aug 2010 01:29:50 +0000 (18:29 -0700)
arch/arm/mach-rk2818/board-infosdk.c
arch/arm/mach-rk2818/board-raho.c

index 2f6ff7ac4f192ae6359a6127523a8a496ee898f7..25bac267ff396e30db839f1cbc5eaf6b974b33d4 100755 (executable)
@@ -330,6 +330,24 @@ struct rk2818_gs_platform_data rk2818_gs_platdata = {
        .gsensor_irq_pin = GS_IRQ_PIN,
 };
 
+/*****************************************************************************************
+ * wm8994  codec
+ * author: cjq@rock-chips.com
+ *****************************************************************************************/
+static struct wm8994_platform_data wm8994_data = {
+    .mic_input = 0,
+    .micBase_vcc = 0,
+    .bb_input = 0, 
+    .bb_output = 0,
+    .frequence = 0,
+    .enable_pin = 0,
+    .headset_pin = 0,
+    .headset_call_vol = 0,
+    .speaker_call_vol = 0,
+    .earpiece_call_vol = 0,
+    .bt_call_vol = 0,
+};// must initialize 
+
 /*****************************************************************************************
  * i2c devices
  * author: kfx@rock-chips.com
@@ -409,6 +427,14 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = {
                .flags                  = 0,
        }
 #endif 
+#if defined (CONFIG_SND_SOC_WM8994)
+       {
+               .type                   = "wm8994",
+               .addr           = 0x1a,
+               .flags                  = 0,
+               .platform_data  = &wm8994_data,
+       },
+#endif
 };
 static struct i2c_board_info __initdata board_i2c1_devices[] = {
 #if defined (CONFIG_RTC_HYM8563)
@@ -464,32 +490,8 @@ static struct i2c_board_info __initdata board_i2c1_devices[] = {
 static struct i2c_board_info __initdata board_i2c2_devices[] = {
 
 };
-/*****************************************************************************************
- * wm8994  codec
- * author: cjq@rock-chips.com
- *****************************************************************************************/
-static struct wm8994_platform_data wm8994_data = {
-    .mic_input = 0,
-    .micBase_vcc = 0,
-    .bb_input = 0, 
-    .bb_output = 0,
-    .frequence = 0,
-    .enable_pin = 0,
-    .headset_pin = 0,
-    .headset_call_vol = 0,
-    .speaker_call_vol = 0,
-    .earpiece_call_vol = 0,
-    .bt_call_vol = 0,
-};// must initialize 
 static struct i2c_board_info __initdata board_i2c3_devices[] = {
-#if defined (CONFIG_SND_SOC_WM8994)
-       {
-               .type                   = "wm8994",
-               .addr           = 0x1a,
-               .flags                  = 0,
-               .platform_data  = &wm8994_data,
-       },
-#endif
+
 };     
 
 /*****************************************************************************************
index 294b544e1efed4dc5e4393f0dafb05ad74c3e2c8..61103639a66c7f45c9ed3f1e4872f6f73b7923c2 100755 (executable)
@@ -507,6 +507,24 @@ struct rk2818_gs_platform_data rk2818_gs_platdata = {
        .gsensor_irq_pin = GS_IRQ_PIN,
 };
 
+/*****************************************************************************************
+ * wm8994  codec
+ * author: cjq@rock-chips.com
+ *****************************************************************************************/
+static struct wm8994_platform_data wm8994_data = {
+    .mic_input = 0,
+    .micBase_vcc = 0,
+    .bb_input = 0, 
+    .bb_output = 0,
+    .frequence = 0,
+    .enable_pin = 0,
+    .headset_pin = 0,
+    .headset_call_vol = 0,
+    .speaker_call_vol = 0,
+    .earpiece_call_vol = 0,
+    .bt_call_vol = 0,
+};// must initialize 
+
 /*****************************************************************************************
  * i2c devices
  * author: kfx@rock-chips.com
@@ -642,24 +660,6 @@ static struct i2c_board_info __initdata board_i2c2_devices[] = {
 
 };
 
-/*****************************************************************************************
- * wm8994  codec
- * author: cjq@rock-chips.com
- *****************************************************************************************/
-static struct wm8994_platform_data wm8994_data = {
-    .mic_input = 0,
-    .micBase_vcc = 0,
-    .bb_input = 0, 
-    .bb_output = 0,
-    .frequence = 0,
-    .enable_pin = 0,
-    .headset_pin = 0,
-    .headset_call_vol = 0,
-    .speaker_call_vol = 0,
-    .earpiece_call_vol = 0,
-    .bt_call_vol = 0,
-};// must initialize 
-
 static struct i2c_board_info __initdata board_i2c3_devices[] = {
 #if defined (CONFIG_SND_SOC_WM8994)
        {