#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/timer.h>
#include <linux/gpio.h>
#include <linux/io.h>
#include <linux/slab.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_param (atmel_gpio_line, int, 0) |
|
| MODULE_PARM_DESC (atmel_gpio_line,"GPIO line number connected to WM97xx") |
|
| module_init (atmel_wm97xx_init) |
|
| module_exit (atmel_wm97xx_exit) |
|
| MODULE_AUTHOR ("Hans-Christian Egtvedt <egtvedt@samfundet.no>") |
|
| MODULE_DESCRIPTION ("wm97xx continuous touch driver for Atmel AT91 and AVR32") |
|
| MODULE_LICENSE ("GPL") |
|
#define AC97C_CH_MASK |
( |
|
slot | ) |
(0x7 << (3 * (slot - 3))) |
#define AC97C_CHANNEL_B 0x2 |
#define AC97C_CHANNEL_NONE 0x0 |
#define AC97C_CMR_CEM_BIG (0 << 18) |
#define AC97C_CMR_CEM_LITTLE (1 << 18) |
#define AC97C_CMR_CENA (1 << 21) |
#define AC97C_CMR_SIZE_10 (3 << 16) |
#define AC97C_CMR_SIZE_16 (2 << 16) |
#define AC97C_CMR_SIZE_18 (1 << 16) |
#define AC97C_CMR_SIZE_20 (0 << 16) |
#define AC97C_INT_CBEVT (1 << 4) |
#define AC97C_OVRUN (1 << 5) |
#define AC97C_RXRDY (1 << 4) |
#define AC97C_SR_CAEVT (1 << 3) |
#define WM_READS |
( |
|
sp | ) |
((sp / HZ) + 1) |
MODULE_AUTHOR |
( |
"Hans-Christian Egtvedt <egtvedt@samfundet.no>" |
| ) |
|
module_exit |
( |
atmel_wm97xx_exit |
| ) |
|
module_init |
( |
atmel_wm97xx_init |
| ) |
|
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_param |
( |
atmel_gpio_line |
, |
|
|
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_PARM_DESC |
( |
atmel_gpio_line |
, |
|
|
"GPIO line number connected to WM97xx" |
|
|
) |
| |