device/generic/x86
Revision | 8dcd7f920a6ed9927a3e54bd4d7e48d5f152bb9e (tree) |
---|---|
Zeit | 2015-01-19 12:48:48 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
android-x86-4.4-r2 release (20150101)
@@ -38,7 +38,10 @@ TARGET_NO_KERNEL ?= false | ||
38 | 38 | TARGET_NO_RECOVERY ?= true |
39 | 39 | TARGET_PROVIDES_INIT_RC ?= true |
40 | 40 | TARGET_CPU_SMP ?= true |
41 | -TARGET_EXTRA_KERNEL_MODULES := 8723au tp_smapi | |
41 | +TARGET_EXTRA_KERNEL_MODULES := tp_smapi | |
42 | +ifneq ($(filter efi_img,$(MAKECMDGOALS)),) | |
43 | +TARGET_KERNEL_ARCH ?= x86_64 | |
44 | +endif | |
42 | 45 | |
43 | 46 | TARGET_USE_DISKINSTALLER ?= false |
44 | 47 |
@@ -81,4 +84,4 @@ TARGET_HARDWARE_3D := true | ||
81 | 84 | BOARD_EGL_CFG ?= device/generic/x86/gpu/egl_mesa.cfg |
82 | 85 | endif |
83 | 86 | |
84 | -BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.hardware=$(TARGET_PRODUCT) video=-16 | |
87 | +BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.hardware=$(TARGET_PRODUCT) |
@@ -0,0 +1,3 @@ | ||
1 | +touch.deviceType = default | |
2 | +touch.orientationAware = 1 | |
3 | +touch.gestureMode = spots |
@@ -0,0 +1,3 @@ | ||
1 | +touch.deviceType = default | |
2 | +touch.orientationAware = 1 | |
3 | +touch.gestureMode = spots |
@@ -20,7 +20,6 @@ function init_misc() | ||
20 | 20 | |
21 | 21 | case "$PRODUCT" in |
22 | 22 | T10*TA) |
23 | - echo on > /sys/bus/platform/drivers/sdhci-acpi/INT33BB:00/power/control | |
24 | 23 | ;; |
25 | 24 | *) |
26 | 25 | ;; |
@@ -142,19 +141,6 @@ function init_hal_power() | ||
142 | 141 | function init_hal_sensors() |
143 | 142 | { |
144 | 143 | case "$(cat $DMIPATH/uevent)" in |
145 | - *T*00LA*) | |
146 | - modprobe kfifo-buf | |
147 | - modprobe industrialio-triggered-buffer | |
148 | - modprobe hid-sensor-hub | |
149 | - modprobe hid-sensor-iio-common | |
150 | - modprobe hid-sensor-trigger | |
151 | - modprobe hid-sensor-accel-3d | |
152 | - modprobe hid-sensor-gyro-3d | |
153 | - modprobe hid-sensor-als | |
154 | - modprobe hid-sensor-magn-3d | |
155 | - sleep 1; busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/ | |
156 | - set_property hal.sensors hsb | |
157 | - ;; | |
158 | 144 | *Lucid-MWE*) |
159 | 145 | set_property ro.ignore_atkbd 1 |
160 | 146 | set_property hal.sensors hdaps |
@@ -162,17 +148,6 @@ function init_hal_sensors() | ||
162 | 148 | *ICONIA*W5*) |
163 | 149 | set_property hal.sensors w500 |
164 | 150 | ;; |
165 | - *Zmax*B10T*) | |
166 | - modprobe kfifo-buf | |
167 | - modprobe industrialio-triggered-buffer | |
168 | - modprobe hid-sensor-hub | |
169 | - modprobe hid-sensor-iio-common | |
170 | - modprobe hid-sensor-trigger | |
171 | - modprobe hid-sensor-accel-3d | |
172 | - modprobe hid-sensor-als | |
173 | - sleep 1; busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/ | |
174 | - set_property hal.sensors hsb | |
175 | - ;; | |
176 | 151 | *S10-3t*) |
177 | 152 | set_property hal.sensors s103t |
178 | 153 | ;; |
@@ -190,6 +165,19 @@ function init_hal_sensors() | ||
190 | 165 | io_switch 0x0 0x1 |
191 | 166 | setkeycodes 0x6d 125 |
192 | 167 | ;; |
168 | + *DLI*) | |
169 | + set_property ro.ignore_atkbd 1 | |
170 | + set_property hal.sensors kbd | |
171 | + set_property hal.sensors.kbd.type 1 | |
172 | + setkeycodes 0x64 1 | |
173 | + setkeycodes 0x65 172 | |
174 | + setkeycodes 0x66 127 | |
175 | + setkeycodes 0x67 116 | |
176 | + setkeycodes 0x68 114 | |
177 | + setkeycodes 0x69 115 | |
178 | + setkeycodes 0x6c 114 | |
179 | + setkeycodes 0x6d 115 | |
180 | + ;; | |
193 | 181 | *tx2*) |
194 | 182 | setkeycodes 0xb1 138 |
195 | 183 | setkeycodes 0x8a 152 |
@@ -200,7 +188,9 @@ function init_hal_sensors() | ||
200 | 188 | ;; |
201 | 189 | *MS-N0E1*) |
202 | 190 | set_property ro.ignore_atkbd 1 |
203 | - set_property poweroff.doubleclick 0 | |
191 | + setkeycodes 0xa5 125 | |
192 | + setkeycodes 0xa7 1 | |
193 | + setkeycodes 0xe3 142 | |
204 | 194 | ;; |
205 | 195 | *Aspire1*25*) |
206 | 196 | modprobe lis3lv02d_i2c |
@@ -215,6 +205,15 @@ function init_hal_sensors() | ||
215 | 205 | set_property hal.sensors kbd |
216 | 206 | ;; |
217 | 207 | esac |
208 | + | |
209 | + # has sensor-hub? | |
210 | + for i in /sys/bus/iio/devices/iio:device?; do | |
211 | + if [ -e $i/in_accel_scale ]; then | |
212 | + busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/ | |
213 | + set_property hal.sensors hsb | |
214 | + break | |
215 | + fi | |
216 | + done | |
218 | 217 | } |
219 | 218 | |
220 | 219 | function create_pointercal() |
@@ -308,9 +307,12 @@ function do_bootcomplete() | ||
308 | 307 | # FIXME: autosleep works better on i965? |
309 | 308 | [ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1 |
310 | 309 | |
310 | + lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1 | |
311 | + | |
311 | 312 | for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do |
312 | 313 | chown 1002.1002 $bt && chmod 660 $bt |
313 | 314 | done |
315 | +# am force-stop com.android.bluetooth | |
314 | 316 | |
315 | 317 | case "$PRODUCT" in |
316 | 318 | 1866???|1867???|1869???) # ThinkPad X41 Tablet |