|
Linux Kernel
3.7.1
|
#include <linux/input.h>#include <linux/pm.h>#include <linux/spi/spi.h>#include <linux/module.h>#include "ad7879.h"Go to the source code of this file.
Macros | |
| #define | AD7879_DEVID 0x7A /* AD7879/AD7889 */ |
| #define | MAX_SPI_FREQ_HZ 5000000 |
| #define | AD7879_CMD_MAGIC 0xE000 |
| #define | AD7879_CMD_READ (1 << 10) |
| #define | AD7879_CMD(reg) (AD7879_CMD_MAGIC | ((reg) & 0xF)) |
| #define | AD7879_WRITECMD(reg) (AD7879_CMD(reg)) |
| #define | AD7879_READCMD(reg) (AD7879_CMD(reg) | AD7879_CMD_READ) |
Functions | |
| module_spi_driver (ad7879_spi_driver) | |
| MODULE_AUTHOR ("Michael Hennerich <[email protected]>") | |
| MODULE_DESCRIPTION ("AD7879(-1) touchscreen SPI bus driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS ("spi:ad7879") | |
| #define AD7879_CMD | ( | reg | ) | (AD7879_CMD_MAGIC | ((reg) & 0xF)) |
Definition at line 21 of file ad7879-spi.c.
| #define AD7879_CMD_MAGIC 0xE000 |
Definition at line 19 of file ad7879-spi.c.
| #define AD7879_CMD_READ (1 << 10) |
Definition at line 20 of file ad7879-spi.c.
| #define AD7879_DEVID 0x7A /* AD7879/AD7889 */ |
Definition at line 16 of file ad7879-spi.c.
| #define AD7879_READCMD | ( | reg | ) | (AD7879_CMD(reg) | AD7879_CMD_READ) |
Definition at line 23 of file ad7879-spi.c.
| #define AD7879_WRITECMD | ( | reg | ) | (AD7879_CMD(reg)) |
Definition at line 22 of file ad7879-spi.c.
| #define MAX_SPI_FREQ_HZ 5000000 |
Definition at line 18 of file ad7879-spi.c.
| MODULE_ALIAS | ( | "spi:ad7879" | ) |
| MODULE_AUTHOR | ( | "Michael Hennerich <[email protected]>" | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_spi_driver | ( | ad7879_spi_driver | ) |
1.8.2