#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/i2c/mms114.h>
#include <linux/input/mt.h>
#include <linux/interrupt.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
Go to the source code of this file.
#define MMS114_ACTIVE (1 << 1) |
#define MMS114_CONTACT_THRESHOLD 0x05 |
#define MMS114_I2C_DELAY 50 |
#define MMS114_INFOMATION 0x10 |
#define MMS114_MAX_AREA 0xff |
#define MMS114_MAX_TOUCH 10 |
#define MMS114_MODE_CONTROL 0x01 |
#define MMS114_MOVING_THRESHOLD 0x06 |
#define MMS114_OPERATION_MODE_MASK 0xE |
#define MMS114_PACKET_NUM 8 |
#define MMS114_PACKET_SIZE 0x0F |
#define MMS114_POWERON_DELAY 200 |
#define MMS114_TSP_REV 0xF0 |
#define MMS114_TYPE_NONE 0 |
#define MMS114_TYPE_TOUCHKEY 2 |
#define MMS114_TYPE_TOUCHSCREEN 1 |
#define MMS114_X_RESOLUTION 0x03 |
#define MMS114_XY_RESOLUTION_H 0x02 |
#define MMS114_Y_RESOLUTION 0x04 |
MODULE_DESCRIPTION |
( |
"MELFAS mms114 Touchscreen driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
mms114_id |
|
|
) |
| |
module_i2c_driver |
( |
mms114_driver |
| ) |
|