Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-amd: Commit

device/amd


Commit MetaInfo

Revision793937af0cba78984da71c269dc8fe4ec42bcad7 (tree)
Time2013-03-29 20:52:27
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

enable kbd sensors

Select sensors type by the property hal.sensors.kbd.type.

Change Summary

Incremental Difference

--- a/brazos/BoardConfig.mk
+++ b/brazos/BoardConfig.mk
@@ -1,5 +1,6 @@
11 TARGET_ARCH_VARIANT := x86-atom
22 TARGET_HAS_THIRD_PARTY_APPS := true
33 BOARD_GPU_DRIVERS := r600g
4+BOARD_USES_KBDSENSOR := true
45
56 include $(GENERIC_X86_CONFIG_MK)
--- a/brazos/brazos.mk
+++ b/brazos/brazos.mk
@@ -1,3 +1,5 @@
1+PRODUCT_PACKAGES := sensors.$(TARGET_PRODUCT)
2+
13 PRODUCT_COPY_FILES := \
24 $(LOCAL_PATH)/AT_Translated_Set_2_keyboard.kl:system/usr/keylayout/AT_Translated_Set_2_keyboard.kl \
35
--- a/brazos/brazos_defconfig
+++ b/brazos/brazos_defconfig
@@ -4004,7 +4004,7 @@ CONFIG_MSDOS_PARTITION=y
40044004 # CONFIG_ULTRIX_PARTITION is not set
40054005 # CONFIG_SUN_PARTITION is not set
40064006 # CONFIG_KARMA_PARTITION is not set
4007-# CONFIG_EFI_PARTITION is not set
4007+CONFIG_EFI_PARTITION=y
40084008 # CONFIG_SYSV68_PARTITION is not set
40094009 CONFIG_NLS=y
40104010 CONFIG_NLS_DEFAULT="iso8859-1"
--- a/brazos/brazos_info
+++ b/brazos/brazos_info
@@ -4,11 +4,14 @@ brazos_info()
44 {
55 board=`cat $DMIPATH/product_name`
66 case "$board" in
7+ Inagua)
8+ echo 'hal.sensors.kbd.type=2' >> default.prop
9+ ;;
710 *)
8- EXTMOD="$EXTMOD hid-multitouch"
911 ;;
1012 esac
1113
14+ EXTMOD="$EXTMOD ath3k uvcvideo hid-multitouch"
1215 return 1 # auto_detect
1316 }
1417
--- a/brazos/init.amd_brazos.rc
+++ b/brazos/init.amd_brazos.rc
@@ -4,3 +4,12 @@ on boot
44
55 setkeycode 0xe025 172
66 setkeycode 0xe027 1
7+ setkeycode 0xe05b 172
8+ setkeycode 0xe05e 116
9+ setkeycode 0xe0de 142
10+ setkeycode 0x5b 103
11+ setkeycode 0x62 29
12+ setkeycode 0x6d 105
13+ setkeycode 0x73 106
14+ setkeycode 0x74 56
15+ setkeycode 0x7b 108
Show on old repository browser