From: srt Date: Tue, 14 Sep 2010 07:10:31 +0000 (+0800) Subject: auto TS Calibration: auto switch support between info_sdk and it50 X-Git-Tag: firefly_0821_release~11146 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44c4bd2e94835e650a7d8f00dab5ddc82ebcf914;p=firefly-linux-kernel-4.4.55.git auto TS Calibration: auto switch support between info_sdk and it50 --- diff --git a/arch/arm/configs/rk2818_info_it50_defconfig b/arch/arm/configs/rk2818_info_it50_defconfig index c89f6f282c3f..24c323729db8 100644 --- a/arch/arm/configs/rk2818_info_it50_defconfig +++ b/arch/arm/configs/rk2818_info_it50_defconfig @@ -699,8 +699,8 @@ CONFIG_KEYBOARD_RK28ADC_IT50=y CONFIG_INPUT_TOUCHSCREEN=y # CONFIG_TOUCHSCREEN_ADS7846 is not set # CONFIG_TOUCHSCREEN_AD7877 is not set -CONFIG_TOUCHSCREEN_XPT2046_SPI=y -# CONFIG_TOUCHSCREEN_XPT2046_CBN_SPI is not set +# CONFIG_TOUCHSCREEN_XPT2046_SPI is not set +CONFIG_TOUCHSCREEN_XPT2046_CBN_SPI=y # CONFIG_TOUCHSCREEN_XPT2046_320X480_SPI is not set # CONFIG_TOUCHSCREEN_XPT2046_320X480_CBN_SPI is not set # CONFIG_TOUCHSCREEN_IT7250 is not set diff --git a/drivers/input/touchscreen/calib_iface_ts.c b/drivers/input/touchscreen/calib_iface_ts.c index b8d1d2ae3bc2..14b9c5332c57 100644 --- a/drivers/input/touchscreen/calib_iface_ts.c +++ b/drivers/input/touchscreen/calib_iface_ts.c @@ -45,8 +45,15 @@ int screen_y[5] = { 40, 40, 440, 440, 240}; int uncali_x[5] = { 0 }; int uncali_y[5] = { 0 }; +#ifdef CONFIG_MACH_RK2818INFO_IT50 int uncali_x_default[5] = { 3735, 301, 3754, 290, 1993 }; int uncali_y_default[5] = { 3442, 3497, 413, 459, 1880 }; +#endif + +#ifdef CONFIG_MACH_RK2818INFO +int uncali_x_default[5] = { 438, 565, 3507, 3631, 2105 }; +int uncali_y_default[5] = { 3756, 489, 3792, 534, 2159 }; +#endif static ssize_t touch_mode_show(struct class *cls, char *_buf) {