#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/wm97xx.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <mach/regs-ac97.h>
#include <asm/mach-types.h>
Go to the source code of this file.
|
| module_param (cont_rate, int, 0) |
|
| MODULE_PARM_DESC (cont_rate,"Sampling rate in continuous mode (Hz)") |
|
| module_param (pen_int, int, 0) |
|
| MODULE_PARM_DESC (pen_int,"Pen down detection (1 = interrupt, 0 = polling)") |
|
| module_param (pressure, int, 0) |
|
| MODULE_PARM_DESC (pressure,"Pressure readback (1 = pressure, 0 = no pressure)") |
|
| module_param (ac97_touch_slot, int, 0) |
|
| MODULE_PARM_DESC (ac97_touch_slot,"Touch screen data slot AC97 number") |
|
| module_platform_driver (mainstone_wm97xx_driver) |
|
| MODULE_AUTHOR ("Liam Girdwood <[email protected]>") |
|
| MODULE_DESCRIPTION ("wm97xx continuous touch driver for mainstone") |
|
| MODULE_LICENSE ("GPL") |
|
#define WM_READS |
( |
|
sp | ) |
((sp / HZ) + 1) |
module_param |
( |
cont_rate |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
pen_int |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
pressure |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
ac97_touch_slot |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
pen_int |
, |
|
|
"Pen down detection (1 = interrupt, 0 = polling)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
pressure |
, |
|
|
"Pressure readback (1 = pressure, 0 = no pressure)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ac97_touch_slot |
, |
|
|
"Touch screen data slot AC97 number" |
|
|
) |
| |
module_platform_driver |
( |
mainstone_wm97xx_driver |
| ) |
|