summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-15 18:22:18 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-15 23:57:42 +0200
commit5e4fc6d212bac1f1825b5ecc31073eff4bbcbf9b (patch)
tree5b762b7d0afe99a9d2e0a8bebc2813e9bd2193a4
parent1e0261f522a891ef607c249aa05723ab6a088a08 (diff)
Add ST1232 touchscreen support
The touchscreen was detected and handled as a pointer device by default. Add a device configuration file to use it as a touchscreen. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--device_base.mk2
-rw-r--r--st1232-touchscreen.idc33
2 files changed, 35 insertions, 0 deletions
diff --git a/device_base.mk b/device_base.mk
index 2525f6d..11d33af 100644
--- a/device_base.mk
+++ b/device_base.mk
@@ -15,8 +15,10 @@
#
PRODUCT_COPY_FILES += \
+ frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
device/renesas/armadillo/init.armadillo800eva.rc:root/init.armadillo800eva.rc \
device/renesas/armadillo/media_profiles.xml:system/etc/media_profiles.xml \
device/renesas/armadillo/armadillo-tca6416-keypad.kl:system/usr/keylayout/armadillo-tca6416-keypad.kl \
device/renesas/armadillo/armadillo-tca6416-keypad.kcm:system/usr/keychars/armadillo-tca6416-keypad.kcm \
+ device/renesas/armadillo/st1232-touchscreen.idc:system/usr/idc/st1232-touchscreen.idc \
device/renesas/armadillo/vold.fstab:system/etc/vold.fstab
diff --git a/st1232-touchscreen.idc b/st1232-touchscreen.idc
new file mode 100644
index 0000000..e1db0c9
--- /dev/null
+++ b/st1232-touchscreen.idc
@@ -0,0 +1,33 @@
+# Copyright (C) 2010 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Input Device Configuration File for the Ampire touch screen.
+#
+
+# Basic Parameters
+touch.deviceType = touchScreen
+touch.orientationAware = 0
+
+# Size
+# Based on empirical measurements, we estimate the size of the contact
+# using size = sqrt(area) * 28 + 0.
+touch.size.calibration = area
+touch.size.scale = 28
+touch.size.bias = 0
+touch.size.isSummed = 0
+
+# Pressure and orientation are not supported
+touch.pressure.calibration = none
+touch.orientation.calibration = none