Lines Matching +full:0 +full:x000003ff

20 #define LPC32XX_TSC_STAT			0x00
21 #define LPC32XX_TSC_SEL 0x04
22 #define LPC32XX_TSC_CON 0x08
23 #define LPC32XX_TSC_FIFO 0x0C
24 #define LPC32XX_TSC_DTR 0x10
25 #define LPC32XX_TSC_RTR 0x14
26 #define LPC32XX_TSC_UTR 0x18
27 #define LPC32XX_TSC_TTR 0x1C
28 #define LPC32XX_TSC_DXP 0x20
29 #define LPC32XX_TSC_MIN_X 0x24
30 #define LPC32XX_TSC_MAX_X 0x28
31 #define LPC32XX_TSC_MIN_Y 0x2C
32 #define LPC32XX_TSC_MAX_Y 0x30
33 #define LPC32XX_TSC_AUX_UTR 0x34
34 #define LPC32XX_TSC_AUX_MIN 0x38
35 #define LPC32XX_TSC_AUX_MAX 0x3C
40 #define LPC32XX_TSC_SEL_DEFVAL 0x0284
42 #define LPC32XX_TSC_ADCCON_IRQ_TO_FIFO_4 (0x1 << 11)
46 #define LPC32XX_TSC_ADCCON_AUTO_EN BIT(0)
49 #define LPC32XX_TSC_FIFO_NORMALIZE_X_VAL(x) (((x) & 0x03FF0000) >> 16)
50 #define LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL(y) ((y) & 0x000003FF)
52 #define LPC32XX_TSC_ADCDAT_VALUE_MASK 0x000003FF
54 #define LPC32XX_TSC_MIN_XY_VAL 0x0
55 #define LPC32XX_TSC_MAX_XY_VAL 0x3FF
98 idx = 0; in lpc32xx_ts_interrupt()
118 input_report_key(input, BTN_TOUCH, 0); in lpc32xx_ts_interrupt()
161 tsc_writel(tsc, LPC32XX_TSC_AUX_UTR, 0); in lpc32xx_setup_tsc()
162 tsc_writel(tsc, LPC32XX_TSC_AUX_MIN, 0); in lpc32xx_setup_tsc()
163 tsc_writel(tsc, LPC32XX_TSC_AUX_MAX, 0); in lpc32xx_setup_tsc()
171 tsc_writel(tsc, LPC32XX_TSC_RTR, 0x2); in lpc32xx_setup_tsc()
172 tsc_writel(tsc, LPC32XX_TSC_DTR, 0x2); in lpc32xx_setup_tsc()
173 tsc_writel(tsc, LPC32XX_TSC_TTR, 0x10); in lpc32xx_setup_tsc()
174 tsc_writel(tsc, LPC32XX_TSC_DXP, 0x4); in lpc32xx_setup_tsc()
182 return 0; in lpc32xx_setup_tsc()
207 irq = platform_get_irq(pdev, 0); in lpc32xx_ts_probe()
208 if (irq < 0) in lpc32xx_ts_probe()
217 tsc->tsc_base = devm_platform_ioremap_resource(pdev, 0); in lpc32xx_ts_probe()
236 input->id.vendor = 0x0001; in lpc32xx_ts_probe()
237 input->id.product = 0x0002; in lpc32xx_ts_probe()
238 input->id.version = 0x0100; in lpc32xx_ts_probe()
244 LPC32XX_TSC_MAX_XY_VAL, 0, 0); in lpc32xx_ts_probe()
246 LPC32XX_TSC_MAX_XY_VAL, 0, 0); in lpc32xx_ts_probe()
252 0, pdev->name, tsc); in lpc32xx_ts_probe()
267 return 0; in lpc32xx_ts_probe()
293 return 0; in lpc32xx_ts_suspend()
312 return 0; in lpc32xx_ts_resume()