auto TS Calibration: auto switch support between info_sdk and it50

This commit is contained in:
srt
2010-09-14 15:10:31 +08:00
parent 96fc4d07a4
commit 44c4bd2e94
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{