diff options
author | Kevin | 2014-11-15 10:00:36 +0800 |
---|---|---|
committer | Kevin | 2014-11-15 10:00:36 +0800 |
commit | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (patch) | |
tree | de942df665fac4bac0d9cb7ae86910fe937b0c1a /ANDROID_3.4.5/include/linux/nfc/pn544.h | |
parent | 392e8802486cb573b916e746010e141a75f507e6 (diff) | |
download | FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.gz FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.bz2 FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.zip |
add via modify part source code for wm8880 4.4 kitkat
Diffstat (limited to 'ANDROID_3.4.5/include/linux/nfc/pn544.h')
-rw-r--r-- | ANDROID_3.4.5/include/linux/nfc/pn544.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/include/linux/nfc/pn544.h b/ANDROID_3.4.5/include/linux/nfc/pn544.h index 7ab8521f..11eb2236 100644 --- a/ANDROID_3.4.5/include/linux/nfc/pn544.h +++ b/ANDROID_3.4.5/include/linux/nfc/pn544.h @@ -32,6 +32,18 @@ #define PN544_MAX_I2C_TRANSFER 0x0400 #define PN544_MSG_MAX_SIZE 0x21 /* at normal HCI mode */ + +#define PN544_MAGIC 0xE9 + +/* + * PN544 power control via ioctl + * PN544_SET_PWR(0): power off + * PN544_SET_PWR(1): power on + * PN544_SET_PWR(2): reset and power on with firmware download enabled + */ +#define PN544_SET_PWR _IOW(PN544_MAGIC, 0x01, unsigned int) + + /* ioctl */ #define PN544_CHAR_BASE 'P' #define PN544_IOR(num, dtype) _IOR(PN544_CHAR_BASE, num, dtype) @@ -41,6 +53,7 @@ #define PN544_GET_DEBUG PN544_IOW(3, unsigned int) #define PN544_SET_DEBUG PN544_IOW(4, unsigned int) +//#define PN544_SET_PWR PN544_IOW(5, unsigned int) //add 2014-7-10 /* Timing restrictions (ms) */ #define PN544_RESETVEN_TIME 30 /* 7 */ #define PN544_PVDDVEN_TIME 0 @@ -91,6 +104,10 @@ struct pn544_nfc_platform_data { void (*enable) (int fw); int (*test) (void); void (*disable) (void); + int irq_gpio, ven_gpio, firm_gpio; + //int irq_enable, ven_enable, firm_enable; + int irq_active, ven_active, firm_active; + }; #endif /* __KERNEL__ */ |