#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/platform_data/fsa9480.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
Go to the source code of this file.
#define CON_INT_MASK (1 << 0) |
#define CON_MANUAL_SW (1 << 2) |
#define CON_RAW_DATA (1 << 3) |
#define CON_SWITCH_OPEN (1 << 4) |
#define CON_WAIT (1 << 1) |
#define DEV_AUDIO_1 (1 << 0) |
#define DEV_AUDIO_2 (1 << 1) |
#define DEV_CAR_KIT (1 << 4) |
#define DEV_DEDICATED_CHG (1 << 6) |
#define DEV_JIG_UART_OFF (1 << 3) |
#define DEV_JIG_UART_ON (1 << 2) |
#define DEV_JIG_USB_OFF (1 << 1) |
#define DEV_JIG_USB_ON (1 << 0) |
#define DEV_UART (1 << 3) |
#define DEV_USB_CHG (1 << 5) |
#define DEV_USB_OTG (1 << 7) |
#define FSA9480_REG_ADC 0x07 |
#define FSA9480_REG_BTN1 0x0c |
#define FSA9480_REG_BTN2 0x0d |
#define FSA9480_REG_CK 0x0e |
#define FSA9480_REG_CK_INT1 0x0f |
#define FSA9480_REG_CK_INT2 0x10 |
#define FSA9480_REG_CK_INTMASK1 0x11 |
#define FSA9480_REG_CK_INTMASK2 0x12 |
#define FSA9480_REG_CTRL 0x02 |
#define FSA9480_REG_DEV_T1 0x0a |
#define FSA9480_REG_DEV_T2 0x0b |
#define FSA9480_REG_DEVID 0x01 |
#define FSA9480_REG_INT1 0x03 |
#define FSA9480_REG_INT1_MASK 0x05 |
#define FSA9480_REG_INT2 0x04 |
#define FSA9480_REG_INT2_MASK 0x06 |
#define FSA9480_REG_MANSW1 0x13 |
#define FSA9480_REG_MANSW2 0x14 |
#define FSA9480_REG_TIMING1 0x08 |
#define FSA9480_REG_TIMING2 0x09 |
#define fsa9480_resume NULL |
#define fsa9480_suspend NULL |
#define INT_ATTACH (1 << 0) |
#define INT_DETACH (1 << 1) |
#define SW_AUDIO ((2 << 5) | (2 << 2)) |
#define SW_AUTO ((0 << 5) | (0 << 2)) |
#define SW_DHOST ((1 << 5) | (1 << 2)) |
#define SW_UART ((3 << 5) | (3 << 2)) |
#define SW_VAUDIO ((4 << 5) | (4 << 2)) |
MODULE_DESCRIPTION |
( |
"FSA9480 USB Switch driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
fsa9480_id |
|
|
) |
| |
module_i2c_driver |
( |
fsa9480_i2c_driver |
| ) |
|