Add touch screen calibration file for Crespo.

Change-Id: I4ca3e5748930cd5b4494693975f31849dfafb333
diff --git a/device.mk b/device.mk
index 59fb24b..c8f9a6a 100644
--- a/device.mk
+++ b/device.mk
@@ -68,6 +68,10 @@
 PRODUCT_PACKAGES += \
 	lights.s5pc110
 
+# Input device calibration files
+PRODUCT_COPY_FILES += \
+	device/samsung/crespo/qt602240_ts_input.idc:system/usr/idc/qt602240_ts_input.idc
+
 # These are the hardware-specific features
 PRODUCT_COPY_FILES += \
 	frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
diff --git a/qt602240_ts_input.idc b/qt602240_ts_input.idc
new file mode 100644
index 0000000..0f0ebfc
--- /dev/null
+++ b/qt602240_ts_input.idc
@@ -0,0 +1,37 @@
+# Input Device Calibration File
+
+# Touch Area
+touch.touchArea.calibration = pressure
+
+# Tool Area
+#   Raw width field measures approx. 0.5 units per millimeter
+#   of tool area on the surface where a raw width of 15 corresponds
+#   to about 18mm of physical size.  Given that the display resolution
+#   is 9.6px per mm we obtain a scale factor of 4.8 pixels / unit and
+#   a bias of 100.8 pixels.  Each contact point is measured independently
+#   so the raw width is not a sum.
+touch.toolArea.calibration = linear
+touch.toolArea.linearScale = 4.8
+touch.toolArea.linearBias = 100.8
+touch.toolArea.isSummed = 0
+
+# Pressure
+#   Driver reports signal strength as pressure.
+#   A normal thumb touch while touching the back of the device
+#   typically registers about 40 signal strength units although
+#   this value is highly variable and is sensitive to contact area,
+#   manner of contact and environmental conditions.  We set the
+#   scale so that a normal touch with good signal strength will be
+#   reported as having a pressure somewhere in the vicinity of 1.0,
+#   a featherlight touch will be below 1.0 and a heavy or large touch
+#   will be above 1.0.  We don't expect these values to be accurate.
+touch.pressure.calibration = amplitude
+touch.pressure.source = default
+touch.pressure.scale = 0.025
+
+# Size
+touch.size.calibration = normalized
+
+# Orientation
+touch.orientation.calibration = none
+