정전식 Touch를 사용할 경우 TSC2007칩에 IRQ Disable을 하여 사용하도록 수정
첨부파일 참조
커널에서는
imx6qdl-sabresd.dtsi 파일에서
#if 1 touchscreen: tsc2007@4a { compatible = "ti,tsc2007"; reg = <0x4a>; // pinctrl-names = "default"; // pinctrl-0 = <&pinctrl_mango_ts>; // interrupt-parent = <&gpio3>; // interrupts = <26 0>; // gpios = <&gpio3 26 GPIO_ACTIVE_LOW>; ti,x-plate-ohms = <660>; linux,wakeup; };
mango-ts@38 { compatible = "mango,mango-ts"; reg = <0x38>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mango_ts>; interrupt-parent = <&gpio3>; interrupts = <26 0>; resets = <&mango_ts_reset>; }; |
Tsc2007.c 파일에서 수정을 합니다.
드라이버를 등록하지 않고, IRQ 만 disable 합니다.
#define MANGO_IRQ_DISABLE //crazyboys 20160524
static void tsc2007_stop(struct tsc2007 *ts) { int err;//crazyboys 20160517 MANGO_DBG("\n"); ts->stopped = true; mb(); wake_up(&ts->wait);
disable_irq(ts->irq); #ifdef MANGO_IRQ_DISABLE //crazyboys 20160517 err = tsc2007_xfer(ts, ADC_ON_12BIT); #endif } |
MANGO_IRQ_DISABLE 을 정의하면 됩니다.
내용