rk2928_defconfig: add 'module_param(gs_type, int, 0644)'
authorkfx <kfx@rock-chips.com>
Sat, 1 Dec 2012 07:16:01 +0000 (15:16 +0800)
committerkfx <kfx@rock-chips.com>
Sat, 1 Dec 2012 07:16:01 +0000 (15:16 +0800)
arch/arm/mach-rk2928/board-rk2928-config.c
arch/arm/mach-rk2928/include/mach/config.h

index 3d4ddcdbf7ee325e712d67d011b4e0d4c59421f4..125d498820bba55a6fe57c01f361096fef0e9734 100644 (file)
@@ -158,7 +158,7 @@ static inline int check_lcd_param(void)
 
 /* gsensor */
 static int gs_type = DEF_GS_TYPE;
-
+module_param(gs_type, int, 0644);
 static int gs_i2c = DEF_GS_I2C;
 module_param(gs_i2c, int, 0644);
 static int gs_addr = DEF_GS_ADDR;
index 761a7a9ec810d96950404af52b0cf2ad748c90e3..f25790052f38d8885cdda7a1f2e67d98a31b2a5c 100755 (executable)
@@ -2,12 +2,12 @@
 #define __MACH_CONFIG_H
 #include <mach/board.h>
 
-#define RK2926_TB_DEFAULT_CONFIG
+//#define RK2926_TB_DEFAULT_CONFIG
 //#define RK2928_TB_DEFAULT_CONFIG
 //#define RK2926_V86_DEFAULT_CONFIG
 //#define RK2926_SDK_DEFAULT_CONFIG
 //#define RK2928_SDK_DEFAULT_CONFIG
-//#define RK2928_PHONEPAD_DEFAULT_CONFIG
+#define RK2928_PHONEPAD_DEFAULT_CONFIG
 
 
 /* camera id */
@@ -901,13 +901,13 @@ enum {
 /* keyboard */
 enum{
         DEF_KEY_ADC = -1,
-        DEF_PLAY_KEY = -1,
-        DEF_VOLDN_KEY = -1,
-        DEF_VOLUP_KEY = 0,
-        DEF_MENU_KEY = 0,
-        DEF_ESC_KEY = 0,
-        DEF_HOME_KEY = 0,
-        DEF_CAM_KEY = 0,
+        DEF_PLAY_KEY = 0x80000000,
+        DEF_VOLDN_KEY = 0x80000000,
+        DEF_VOLUP_KEY = 0x80000000,
+        DEF_MENU_KEY = 0x80000000,
+        DEF_ESC_KEY = 0x80000000,
+        DEF_HOME_KEY = 0x80000000,
+        DEF_CAM_KEY = 0x80000000,
 };
 /* backlight */
 enum{