mainstone-wm97xx.c (4f2c0a4acffbec01079c28f839422e64ddeff004) mainstone-wm97xx.c (d6df7df7ae5a0f781341134e7cb24e3396f8434a)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for
4 * Wolfson WM97xx AC97 Codecs.
5 *
6 * Copyright 2004, 2007 Wolfson Microelectronics PLC.
7 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
8 * Parts Copyright : Ian Molton <spyro@f2s.com>

--- 173 unchanged lines hidden (view full) ---

182 break;
183 }
184 wm->acc_rate = cinfo[sp_idx].code;
185 wm->acc_slot = ac97_touch_slot;
186 dev_info(wm->dev,
187 "mainstone accelerated touchscreen driver, %d samples/sec\n",
188 cinfo[sp_idx].speed);
189
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for
4 * Wolfson WM97xx AC97 Codecs.
5 *
6 * Copyright 2004, 2007 Wolfson Microelectronics PLC.
7 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
8 * Parts Copyright : Ian Molton <spyro@f2s.com>

--- 173 unchanged lines hidden (view full) ---

182 break;
183 }
184 wm->acc_rate = cinfo[sp_idx].code;
185 wm->acc_slot = ac97_touch_slot;
186 dev_info(wm->dev,
187 "mainstone accelerated touchscreen driver, %d samples/sec\n",
188 cinfo[sp_idx].speed);
189
190 /* IRQ driven touchscreen is used on Palm hardware */
191 if (machine_is_palmt5() || machine_is_palmtx() || machine_is_palmld()) {
192 pen_int = 1;
193 /* There is some obscure mutant of WM9712 interbred with WM9713
194 * used on Palm HW */
195 wm->variant = WM97xx_WM1613;
196 } else if (machine_is_zylonite()) {
197 pen_int = 1;
198 }
199
200 if (pen_int) {
201 gpiod_irq = gpiod_get(wm->dev, "touch", GPIOD_IN);
202 if (IS_ERR(gpiod_irq))
203 pen_int = 0;
204 }
205
206 if (pen_int) {
207 wm->pen_irq = gpiod_to_irq(gpiod_irq);

--- 79 unchanged lines hidden ---
190 if (pen_int) {
191 gpiod_irq = gpiod_get(wm->dev, "touch", GPIOD_IN);
192 if (IS_ERR(gpiod_irq))
193 pen_int = 0;
194 }
195
196 if (pen_int) {
197 wm->pen_irq = gpiod_to_irq(gpiod_irq);

--- 79 unchanged lines hidden ---