Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/mfd/max77693.h>
#include <linux/mfd/max77693-private.h>
#include <linux/extcon.h>
#include <linux/regmap.h>
#include <linux/irqdomain.h>
Go to the source code of this file.
Data Structures | |
struct | max77693_muic_info |
struct | max77693_muic_irq |
Macros | |
#define | DEV_NAME "max77693-muic" |
#define | STATUS1_ADC_SHIFT (0) |
#define | STATUS1_ADCLOW_SHIFT (5) |
#define | STATUS1_ADCERR_SHIFT (6) |
#define | STATUS1_ADC1K_SHIFT (7) |
#define | STATUS1_ADC_MASK (0x1f << STATUS1_ADC_SHIFT) |
#define | STATUS1_ADCLOW_MASK (0x1 << STATUS1_ADCLOW_SHIFT) |
#define | STATUS1_ADCERR_MASK (0x1 << STATUS1_ADCERR_SHIFT) |
#define | STATUS1_ADC1K_MASK (0x1 << STATUS1_ADC1K_SHIFT) |
#define | STATUS2_CHGTYP_SHIFT (0) |
#define | STATUS2_CHGDETRUN_SHIFT (3) |
#define | STATUS2_DCDTMR_SHIFT (4) |
#define | STATUS2_DXOVP_SHIFT (5) |
#define | STATUS2_VBVOLT_SHIFT (6) |
#define | STATUS2_VIDRM_SHIFT (7) |
#define | STATUS2_CHGTYP_MASK (0x7 << STATUS2_CHGTYP_SHIFT) |
#define | STATUS2_CHGDETRUN_MASK (0x1 << STATUS2_CHGDETRUN_SHIFT) |
#define | STATUS2_DCDTMR_MASK (0x1 << STATUS2_DCDTMR_SHIFT) |
#define | STATUS2_DXOVP_MASK (0x1 << STATUS2_DXOVP_SHIFT) |
#define | STATUS2_VBVOLT_MASK (0x1 << STATUS2_VBVOLT_SHIFT) |
#define | STATUS2_VIDRM_MASK (0x1 << STATUS2_VIDRM_SHIFT) |
#define | STATUS3_OVP_SHIFT (2) |
#define | STATUS3_OVP_MASK (0x1 << STATUS3_OVP_SHIFT) |
#define | CDETCTRL1_CHGDETEN_SHIFT (0) |
#define | CDETCTRL1_CHGTYPMAN_SHIFT (1) |
#define | CDETCTRL1_DCDEN_SHIFT (2) |
#define | CDETCTRL1_DCD2SCT_SHIFT (3) |
#define | CDETCTRL1_CDDELAY_SHIFT (4) |
#define | CDETCTRL1_DCDCPL_SHIFT (5) |
#define | CDETCTRL1_CDPDET_SHIFT (7) |
#define | CDETCTRL1_CHGDETEN_MASK (0x1 << CDETCTRL1_CHGDETEN_SHIFT) |
#define | CDETCTRL1_CHGTYPMAN_MASK (0x1 << CDETCTRL1_CHGTYPMAN_SHIFT) |
#define | CDETCTRL1_DCDEN_MASK (0x1 << CDETCTRL1_DCDEN_SHIFT) |
#define | CDETCTRL1_DCD2SCT_MASK (0x1 << CDETCTRL1_DCD2SCT_SHIFT) |
#define | CDETCTRL1_CDDELAY_MASK (0x1 << CDETCTRL1_CDDELAY_SHIFT) |
#define | CDETCTRL1_DCDCPL_MASK (0x1 << CDETCTRL1_DCDCPL_SHIFT) |
#define | CDETCTRL1_CDPDET_MASK (0x1 << CDETCTRL1_CDPDET_SHIFT) |
#define | CDETCTRL2_VIDRMEN_SHIFT (1) |
#define | CDETCTRL2_DXOVPEN_SHIFT (3) |
#define | CDETCTRL2_VIDRMEN_MASK (0x1 << CDETCTRL2_VIDRMEN_SHIFT) |
#define | CDETCTRL2_DXOVPEN_MASK (0x1 << CDETCTRL2_DXOVPEN_SHIFT) |
#define | COMN1SW_SHIFT (0) |
#define | COMP2SW_SHIFT (3) |
#define | COMN1SW_MASK (0x7 << COMN1SW_SHIFT) |
#define | COMP2SW_MASK (0x7 << COMP2SW_SHIFT) |
#define | COMP_SW_MASK (COMP2SW_MASK | COMN1SW_MASK) |
#define | CONTROL1_SW_USB |
#define | CONTROL1_SW_AUDIO |
#define | CONTROL1_SW_UART |
#define | CONTROL1_SW_OPEN |
#define | CONTROL2_LOWPWR_SHIFT (0) |
#define | CONTROL2_ADCEN_SHIFT (1) |
#define | CONTROL2_CPEN_SHIFT (2) |
#define | CONTROL2_SFOUTASRT_SHIFT (3) |
#define | CONTROL2_SFOUTORD_SHIFT (4) |
#define | CONTROL2_ACCDET_SHIFT (5) |
#define | CONTROL2_USBCPINT_SHIFT (6) |
#define | CONTROL2_RCPS_SHIFT (7) |
#define | CONTROL2_LOWPWR_MASK (0x1 << CONTROL2_LOWPWR_SHIFT) |
#define | CONTROL2_ADCEN_MASK (0x1 << CONTROL2_ADCEN_SHIFT) |
#define | CONTROL2_CPEN_MASK (0x1 << CONTROL2_CPEN_SHIFT) |
#define | CONTROL2_SFOUTASRT_MASK (0x1 << CONTROL2_SFOUTASRT_SHIFT) |
#define | CONTROL2_SFOUTORD_MASK (0x1 << CONTROL2_SFOUTORD_SHIFT) |
#define | CONTROL2_ACCDET_MASK (0x1 << CONTROL2_ACCDET_SHIFT) |
#define | CONTROL2_USBCPINT_MASK (0x1 << CONTROL2_USBCPINT_SHIFT) |
#define | CONTROL2_RCPS_MASK (0x1 << CONTROL2_RCPS_SHIFT) |
#define | CONTROL3_JIGSET_SHIFT (0) |
#define | CONTROL3_BTLDSET_SHIFT (2) |
#define | CONTROL3_ADCDBSET_SHIFT (4) |
#define | CONTROL3_JIGSET_MASK (0x3 << CONTROL3_JIGSET_SHIFT) |
#define | CONTROL3_BTLDSET_MASK (0x3 << CONTROL3_BTLDSET_SHIFT) |
#define | CONTROL3_ADCDBSET_MASK (0x3 << CONTROL3_ADCDBSET_SHIFT) |
#define CDETCTRL1_CDDELAY_MASK (0x1 << CDETCTRL1_CDDELAY_SHIFT) |
Definition at line 71 of file extcon-max77693.c.
#define CDETCTRL1_CDDELAY_SHIFT (4) |
Definition at line 64 of file extcon-max77693.c.
#define CDETCTRL1_CDPDET_MASK (0x1 << CDETCTRL1_CDPDET_SHIFT) |
Definition at line 73 of file extcon-max77693.c.
#define CDETCTRL1_CDPDET_SHIFT (7) |
Definition at line 66 of file extcon-max77693.c.
#define CDETCTRL1_CHGDETEN_MASK (0x1 << CDETCTRL1_CHGDETEN_SHIFT) |
Definition at line 67 of file extcon-max77693.c.
#define CDETCTRL1_CHGDETEN_SHIFT (0) |
Definition at line 60 of file extcon-max77693.c.
#define CDETCTRL1_CHGTYPMAN_MASK (0x1 << CDETCTRL1_CHGTYPMAN_SHIFT) |
Definition at line 68 of file extcon-max77693.c.
#define CDETCTRL1_CHGTYPMAN_SHIFT (1) |
Definition at line 61 of file extcon-max77693.c.
#define CDETCTRL1_DCD2SCT_MASK (0x1 << CDETCTRL1_DCD2SCT_SHIFT) |
Definition at line 70 of file extcon-max77693.c.
#define CDETCTRL1_DCD2SCT_SHIFT (3) |
Definition at line 63 of file extcon-max77693.c.
#define CDETCTRL1_DCDCPL_MASK (0x1 << CDETCTRL1_DCDCPL_SHIFT) |
Definition at line 72 of file extcon-max77693.c.
#define CDETCTRL1_DCDCPL_SHIFT (5) |
Definition at line 65 of file extcon-max77693.c.
#define CDETCTRL1_DCDEN_MASK (0x1 << CDETCTRL1_DCDEN_SHIFT) |
Definition at line 69 of file extcon-max77693.c.
#define CDETCTRL1_DCDEN_SHIFT (2) |
Definition at line 62 of file extcon-max77693.c.
#define CDETCTRL2_DXOVPEN_MASK (0x1 << CDETCTRL2_DXOVPEN_SHIFT) |
Definition at line 78 of file extcon-max77693.c.
#define CDETCTRL2_DXOVPEN_SHIFT (3) |
Definition at line 76 of file extcon-max77693.c.
#define CDETCTRL2_VIDRMEN_MASK (0x1 << CDETCTRL2_VIDRMEN_SHIFT) |
Definition at line 77 of file extcon-max77693.c.
#define CDETCTRL2_VIDRMEN_SHIFT (1) |
Definition at line 75 of file extcon-max77693.c.
#define COMN1SW_MASK (0x7 << COMN1SW_SHIFT) |
Definition at line 83 of file extcon-max77693.c.
#define COMN1SW_SHIFT (0) |
Definition at line 81 of file extcon-max77693.c.
#define COMP2SW_MASK (0x7 << COMP2SW_SHIFT) |
Definition at line 84 of file extcon-max77693.c.
#define COMP2SW_SHIFT (3) |
Definition at line 82 of file extcon-max77693.c.
#define COMP_SW_MASK (COMP2SW_MASK | COMN1SW_MASK) |
Definition at line 85 of file extcon-max77693.c.
#define CONTROL1_SW_AUDIO |
Definition at line 88 of file extcon-max77693.c.
#define CONTROL1_SW_OPEN |
Definition at line 92 of file extcon-max77693.c.
#define CONTROL1_SW_UART |
Definition at line 90 of file extcon-max77693.c.
#define CONTROL1_SW_USB |
Definition at line 86 of file extcon-max77693.c.
#define CONTROL2_ACCDET_MASK (0x1 << CONTROL2_ACCDET_SHIFT) |
Definition at line 108 of file extcon-max77693.c.
#define CONTROL2_ACCDET_SHIFT (5) |
Definition at line 100 of file extcon-max77693.c.
#define CONTROL2_ADCEN_MASK (0x1 << CONTROL2_ADCEN_SHIFT) |
Definition at line 104 of file extcon-max77693.c.
#define CONTROL2_ADCEN_SHIFT (1) |
Definition at line 96 of file extcon-max77693.c.
#define CONTROL2_CPEN_MASK (0x1 << CONTROL2_CPEN_SHIFT) |
Definition at line 105 of file extcon-max77693.c.
#define CONTROL2_CPEN_SHIFT (2) |
Definition at line 97 of file extcon-max77693.c.
#define CONTROL2_LOWPWR_MASK (0x1 << CONTROL2_LOWPWR_SHIFT) |
Definition at line 103 of file extcon-max77693.c.
#define CONTROL2_LOWPWR_SHIFT (0) |
Definition at line 95 of file extcon-max77693.c.
#define CONTROL2_RCPS_MASK (0x1 << CONTROL2_RCPS_SHIFT) |
Definition at line 110 of file extcon-max77693.c.
#define CONTROL2_RCPS_SHIFT (7) |
Definition at line 102 of file extcon-max77693.c.
#define CONTROL2_SFOUTASRT_MASK (0x1 << CONTROL2_SFOUTASRT_SHIFT) |
Definition at line 106 of file extcon-max77693.c.
#define CONTROL2_SFOUTASRT_SHIFT (3) |
Definition at line 98 of file extcon-max77693.c.
#define CONTROL2_SFOUTORD_MASK (0x1 << CONTROL2_SFOUTORD_SHIFT) |
Definition at line 107 of file extcon-max77693.c.
#define CONTROL2_SFOUTORD_SHIFT (4) |
Definition at line 99 of file extcon-max77693.c.
#define CONTROL2_USBCPINT_MASK (0x1 << CONTROL2_USBCPINT_SHIFT) |
Definition at line 109 of file extcon-max77693.c.
#define CONTROL2_USBCPINT_SHIFT (6) |
Definition at line 101 of file extcon-max77693.c.
#define CONTROL3_ADCDBSET_MASK (0x3 << CONTROL3_ADCDBSET_SHIFT) |
Definition at line 117 of file extcon-max77693.c.
#define CONTROL3_ADCDBSET_SHIFT (4) |
Definition at line 114 of file extcon-max77693.c.
#define CONTROL3_BTLDSET_MASK (0x3 << CONTROL3_BTLDSET_SHIFT) |
Definition at line 116 of file extcon-max77693.c.
#define CONTROL3_BTLDSET_SHIFT (2) |
Definition at line 113 of file extcon-max77693.c.
#define CONTROL3_JIGSET_MASK (0x3 << CONTROL3_JIGSET_SHIFT) |
Definition at line 115 of file extcon-max77693.c.
#define CONTROL3_JIGSET_SHIFT (0) |
Definition at line 112 of file extcon-max77693.c.
#define DEV_NAME "max77693-muic" |
Definition at line 31 of file extcon-max77693.c.
#define STATUS1_ADC1K_MASK (0x1 << STATUS1_ADC1K_SHIFT) |
Definition at line 41 of file extcon-max77693.c.
#define STATUS1_ADC1K_SHIFT (7) |
Definition at line 37 of file extcon-max77693.c.
#define STATUS1_ADC_MASK (0x1f << STATUS1_ADC_SHIFT) |
Definition at line 38 of file extcon-max77693.c.
#define STATUS1_ADC_SHIFT (0) |
Definition at line 34 of file extcon-max77693.c.
#define STATUS1_ADCERR_MASK (0x1 << STATUS1_ADCERR_SHIFT) |
Definition at line 40 of file extcon-max77693.c.
#define STATUS1_ADCERR_SHIFT (6) |
Definition at line 36 of file extcon-max77693.c.
#define STATUS1_ADCLOW_MASK (0x1 << STATUS1_ADCLOW_SHIFT) |
Definition at line 39 of file extcon-max77693.c.
#define STATUS1_ADCLOW_SHIFT (5) |
Definition at line 35 of file extcon-max77693.c.
#define STATUS2_CHGDETRUN_MASK (0x1 << STATUS2_CHGDETRUN_SHIFT) |
Definition at line 50 of file extcon-max77693.c.
#define STATUS2_CHGDETRUN_SHIFT (3) |
Definition at line 44 of file extcon-max77693.c.
#define STATUS2_CHGTYP_MASK (0x7 << STATUS2_CHGTYP_SHIFT) |
Definition at line 49 of file extcon-max77693.c.
#define STATUS2_CHGTYP_SHIFT (0) |
Definition at line 43 of file extcon-max77693.c.
#define STATUS2_DCDTMR_MASK (0x1 << STATUS2_DCDTMR_SHIFT) |
Definition at line 51 of file extcon-max77693.c.
#define STATUS2_DCDTMR_SHIFT (4) |
Definition at line 45 of file extcon-max77693.c.
#define STATUS2_DXOVP_MASK (0x1 << STATUS2_DXOVP_SHIFT) |
Definition at line 52 of file extcon-max77693.c.
#define STATUS2_DXOVP_SHIFT (5) |
Definition at line 46 of file extcon-max77693.c.
#define STATUS2_VBVOLT_MASK (0x1 << STATUS2_VBVOLT_SHIFT) |
Definition at line 53 of file extcon-max77693.c.
#define STATUS2_VBVOLT_SHIFT (6) |
Definition at line 47 of file extcon-max77693.c.
#define STATUS2_VIDRM_MASK (0x1 << STATUS2_VIDRM_SHIFT) |
Definition at line 54 of file extcon-max77693.c.
#define STATUS2_VIDRM_SHIFT (7) |
Definition at line 48 of file extcon-max77693.c.
#define STATUS3_OVP_MASK (0x1 << STATUS3_OVP_SHIFT) |
Definition at line 57 of file extcon-max77693.c.
#define STATUS3_OVP_SHIFT (2) |
Definition at line 56 of file extcon-max77693.c.
Definition at line 182 of file extcon-max77693.c.
ADC_DEBOUNCE_TIME_5MS | |
ADC_DEBOUNCE_TIME_10MS | |
ADC_DEBOUNCE_TIME_25MS | |
ADC_DEBOUNCE_TIME_38_62MS |
Definition at line 119 of file extcon-max77693.c.
Definition at line 140 of file extcon-max77693.c.
MODULE_ALIAS | ( | "platform:extcon-max77693" | ) |
MODULE_AUTHOR | ( | "Chanwoo Choi <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Maxim MAX77693 Extcon driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | max77693_muic_driver | ) |
Definition at line 224 of file extcon-max77693.c.