Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * zylonite-wm97xx.c  --  Zylonite Continuous Touch screen driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright 2004, 2007, 2008 Wolfson Microelectronics PLC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * Parts Copyright : Ian Molton <spyro@f2s.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *                   Andrew Zabolotny <zap@homelink.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * Notes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  *     This is a wm97xx extended touch driver supporting interrupt driven
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  *     and continuous operation on Marvell Zylonite development systems
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  *     (which have a WM9713 on board).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/moduleparam.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <linux/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <linux/wm97xx.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #include <mach/hardware.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #include <mach/mfp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <mach/regs-ac97.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) struct continuous {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	u16 id;    /* codec id */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	u8 code;   /* continuous code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	u8 reads;  /* number of coord reads per read cycle */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	u32 speed; /* number of coords per second */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #define WM_READS(sp) ((sp / HZ) + 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) static const struct continuous cinfo[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	{ WM9713_ID2, 0, WM_READS(94),  94  },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	{ WM9713_ID2, 1, WM_READS(120), 120 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	{ WM9713_ID2, 2, WM_READS(154), 154 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	{ WM9713_ID2, 3, WM_READS(188), 188 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) /* continuous speed index */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) static int sp_idx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50)  * Pen sampling frequency (Hz) in continuous mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) static int cont_rate = 200;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) module_param(cont_rate, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) MODULE_PARM_DESC(cont_rate, "Sampling rate in continuous mode (Hz)");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57)  * Pressure readback.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59)  * Set to 1 to read back pen down pressure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) static int pressure;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) module_param(pressure, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) MODULE_PARM_DESC(pressure, "Pressure readback (1 = pressure, 0 = no pressure)");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66)  * AC97 touch data slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68)  * Touch screen readback data ac97 slot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) static int ac97_touch_slot = 5;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) module_param(ac97_touch_slot, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) MODULE_PARM_DESC(ac97_touch_slot, "Touch screen data slot AC97 number");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) /* flush AC97 slot 5 FIFO machines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) static void wm97xx_acc_pen_up(struct wm97xx *wm)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	msleep(1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	for (i = 0; i < 16; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 		MODR;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) static int wm97xx_acc_pen_down(struct wm97xx *wm)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	u16 x, y, p = 0x100 | WM97XX_ADCSEL_PRES;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	int reads = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	static u16 last, tries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	/* When the AC97 queue has been drained we need to allow time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	 * to buffer up samples otherwise we end up spinning polling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	 * for samples.  The controller can't have a suitably low
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	 * threshold set to use the notifications it gives.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	msleep(1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	if (tries > 5) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 		tries = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		return RC_PENUP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	x = MODR;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	if (x == last) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 		tries++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		return RC_AGAIN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	last = x;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	do {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 		if (reads)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 			x = MODR;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 		y = MODR;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 		if (pressure)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 			p = MODR;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 			x, y, p);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 		/* are samples valid */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 		if ((x & WM97XX_ADCSEL_MASK) != WM97XX_ADCSEL_X ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		    (y & WM97XX_ADCSEL_MASK) != WM97XX_ADCSEL_Y ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 		    (p & WM97XX_ADCSEL_MASK) != WM97XX_ADCSEL_PRES)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 			goto up;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 		/* coordinate is good */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 		tries = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 		input_report_abs(wm->input_dev, ABS_X, x & 0xfff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		input_report_abs(wm->input_dev, ABS_Y, y & 0xfff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 		input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 		input_report_key(wm->input_dev, BTN_TOUCH, (p != 0));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 		input_sync(wm->input_dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 		reads++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	} while (reads < cinfo[sp_idx].reads);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) up:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	return RC_PENDOWN | RC_AGAIN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) static int wm97xx_acc_startup(struct wm97xx *wm)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	int idx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	/* check we have a codec */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	if (wm->ac97 == NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	/* Go you big red fire engine */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	for (idx = 0; idx < ARRAY_SIZE(cinfo); idx++) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 		if (wm->id != cinfo[idx].id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 			continue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 		sp_idx = idx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 		if (cont_rate <= cinfo[idx].speed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	wm->acc_rate = cinfo[sp_idx].code;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	wm->acc_slot = ac97_touch_slot;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	dev_info(wm->dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 		 "zylonite accelerated touchscreen driver, %d samples/sec\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 		 cinfo[sp_idx].speed);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) static void wm97xx_irq_enable(struct wm97xx *wm, int enable)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	if (enable)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 		enable_irq(wm->pen_irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 		disable_irq_nosync(wm->pen_irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) static struct wm97xx_mach_ops zylonite_mach_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	.acc_enabled	= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	.acc_pen_up	= wm97xx_acc_pen_up,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	.acc_pen_down	= wm97xx_acc_pen_down,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	.acc_startup	= wm97xx_acc_startup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	.irq_enable	= wm97xx_irq_enable,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	.irq_gpio	= WM97XX_GPIO_2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) static int zylonite_wm97xx_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	struct wm97xx *wm = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	int gpio_touch_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	if (cpu_is_pxa320())
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		gpio_touch_irq = mfp_to_gpio(MFP_PIN_GPIO15);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		gpio_touch_irq = mfp_to_gpio(MFP_PIN_GPIO26);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	wm->pen_irq = gpio_to_irq(gpio_touch_irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	irq_set_irq_type(wm->pen_irq, IRQ_TYPE_EDGE_BOTH);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	wm97xx_config_gpio(wm, WM97XX_GPIO_13, WM97XX_GPIO_IN,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 			   WM97XX_GPIO_POL_HIGH,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 			   WM97XX_GPIO_STICKY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 			   WM97XX_GPIO_WAKE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	wm97xx_config_gpio(wm, WM97XX_GPIO_2, WM97XX_GPIO_OUT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 			   WM97XX_GPIO_POL_HIGH,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 			   WM97XX_GPIO_NOTSTICKY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 			   WM97XX_GPIO_NOWAKE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	return wm97xx_register_mach_ops(wm, &zylonite_mach_ops);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) static int zylonite_wm97xx_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	struct wm97xx *wm = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	wm97xx_unregister_mach_ops(wm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) static struct platform_driver zylonite_wm97xx_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.probe	= zylonite_wm97xx_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	.remove	= zylonite_wm97xx_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	.driver	= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 		.name	= "wm97xx-touch",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) module_platform_driver(zylonite_wm97xx_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) /* Module information */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_DESCRIPTION("wm97xx continuous touch driver for Zylonite");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) MODULE_LICENSE("GPL");