rk3026: disable adc keyboard
authorkfx <kfx@rock-chips.com>
Thu, 1 Aug 2013 07:53:01 +0000 (15:53 +0800)
committerkfx <kfx@rock-chips.com>
Thu, 1 Aug 2013 07:53:58 +0000 (15:53 +0800)
because rk280a adc reference voltage is 3.3V, but
rk30xx mainbord key's supply voltage is 2.5V and
rk31xx mainbord key's supply voltage is 1.8V.

arch/arm/mach-rk3026/board-rk3026-tb.c
arch/arm/mach-rk3026/board-rk3028a-tb.c

index a2ce0ec549d24840c8088c51ff0544a49b8d5d1a..73910aaabf9effa3a77e7e2125b3dccd20d279f6 100755 (executable)
@@ -434,6 +434,19 @@ static struct sensor_platform_data mma8452_info = {
 #include <plat/key.h>
 
 static struct rk29_keys_button key_button[] = {
+        {
+                .desc   = "play",
+                .code   = KEY_POWER,
+                .gpio   = PLAY_ON_PIN,
+                .active_low = PRESS_LEV_LOW,
+                .wakeup = 1,
+        },
+/* disable adc keyboard,
+ * because rk280a adc reference voltage is 3.3V, but
+ * rk30xx mainbord key's supply voltage is 2.5V and
+ * rk31xx mainbord key's supply voltage is 1.8V.
+ */
+#if 0 
 #ifdef RK31XX_MAINBOARD_V1
         {
                 .desc   = "vol-",
@@ -528,6 +541,7 @@ static struct rk29_keys_button key_button[] = {
                .active_low = PRESS_LEV_LOW,
        },
 #endif
+#endif
 };
 
 struct rk29_keys_platform_data rk29_keys_pdata = {
index 390a35cd8734fac7b7fd551aa6f2ec9428253878..2114a474f4db87a6bb27781c4db9a9343f6bacea 100755 (executable)
@@ -434,6 +434,19 @@ static struct sensor_platform_data mma8452_info = {
 #include <plat/key.h>
 
 static struct rk29_keys_button key_button[] = {
+        {
+                .desc   = "play",
+                .code   = KEY_POWER,
+                .gpio   = PLAY_ON_PIN,
+                .active_low = PRESS_LEV_LOW,
+                .wakeup = 1,
+        },
+/* disable adc keyboard,
+ * because rk280a adc reference voltage is 3.3V, but
+ * rk30xx mainbord key's supply voltage is 2.5V and
+ * rk31xx mainbord key's supply voltage is 1.8V.
+ */
+#if 0 
 #ifdef RK31XX_MAINBOARD_V1
         {
                 .desc   = "vol-",
@@ -528,6 +541,7 @@ static struct rk29_keys_button key_button[] = {
                .active_low = PRESS_LEV_LOW,
        },
 #endif
+#endif
 };
 
 struct rk29_keys_platform_data rk29_keys_pdata = {