-vis On: S3c2410x Delta Driver -
When the user touches the Delta touch panel (differential measurement), the driver computes the X/Y coordinates. It then uses the S3C2410_LCDCON registers to dynamically adjust the TIMEVAL (vertical sync) or the MVAL (inversion signal) to reduce flicker.
static long vis_delta_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) struct vis_delta_device *vis = filp->private_data; switch(cmd) case VIS_SET_BRIGHTNESS: // Map Delta-sigma value to LCD PWM writel(arg, vis->reg_base + S3C2410_LCDCON5); break; case VIS_GET_TOUCH_RAW: copy_to_user((void __user *)arg, vis->delta_sigma_samples, sizeof(vis->delta_sigma_samples)); break; -vis On S3c2410x Delta Driver -
// Request GPIO ret = gpio_request(delta_data_pin, "delta_data"); if (ret) return ret; s3c_gpio_cfgpin(delta_data_pin, S3C_GPIO_SFN(0x0)); // Input s3c_gpio_setpull(delta_data_pin, S3C_GPIO_PULL_UP); When the user touches the Delta touch panel