Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | twl4030_madc_conversion_method |
struct | twl4030_madc_request |
struct | twl4030_madc_user_parms |
Enumerations | |
enum | conversion_methods { TWL4030_MADC_RT, TWL4030_MADC_SW1, TWL4030_MADC_SW2, TWL4030_MADC_NUM_METHODS } |
enum | sample_type { TWL4030_MADC_WAIT, TWL4030_MADC_IRQ_ONESHOT, TWL4030_MADC_IRQ_REARM } |
Functions | |
int | twl4030_madc_conversion (struct twl4030_madc_request *conv) |
int | twl4030_get_madc_conversion (int channel_no) |
#define CURR_PSR_R1 44 |
Definition at line 120 of file twl4030-madc.h.
#define CURR_PSR_R2 88 |
Definition at line 121 of file twl4030-madc.h.
#define CURR_STEP_SIZE 147 |
Definition at line 119 of file twl4030-madc.h.
#define REG_BCICTL2 0x024 |
Definition at line 129 of file twl4030-madc.h.
#define TEMP_PSR_R 100 |
Definition at line 118 of file twl4030-madc.h.
#define TEMP_STEP_SIZE 147 |
Definition at line 117 of file twl4030-madc.h.
#define TWL4030_BCI_BCICTL1 0x23 |
Definition at line 123 of file twl4030-madc.h.
#define TWL4030_BCI_CGAIN 0x020 |
Definition at line 124 of file twl4030-madc.h.
#define TWL4030_BCI_ITHEN (1 << 3) |
Definition at line 127 of file twl4030-madc.h.
#define TWL4030_BCI_ITHSENS 0x007 |
Definition at line 130 of file twl4030-madc.h.
#define TWL4030_BCI_MESBAT (1 << 1) |
Definition at line 125 of file twl4030-madc.h.
#define TWL4030_BCI_TYPEN (1 << 4) |
Definition at line 126 of file twl4030-madc.h.
#define TWL4030_GPBR1_MADC_HFCLK_EN (1 << 7) |
Definition at line 134 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN0 (1 << 0) |
Definition at line 91 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN1 (1 << 1) |
Definition at line 92 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN10 (1 << 10) |
Definition at line 101 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN11 (1 << 11) |
Definition at line 102 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN12 (1 << 12) |
Definition at line 103 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN13 (1 << 13) |
Definition at line 104 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN14 (1 << 14) |
Definition at line 105 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN15 (1 << 15) |
Definition at line 106 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN2 (1 << 2) |
Definition at line 93 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN3 (1 << 3) |
Definition at line 94 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN4 (1 << 4) |
Definition at line 95 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN5 (1 << 5) |
Definition at line 96 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN6 (1 << 6) |
Definition at line 97 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN7 (1 << 7) |
Definition at line 98 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN8 (1 << 8) |
Definition at line 99 of file twl4030-madc.h.
#define TWL4030_MADC_ADCIN9 (1 << 9) |
Definition at line 100 of file twl4030-madc.h.
#define TWL4030_MADC_BTEMP TWL4030_MADC_ADCIN1 |
Definition at line 109 of file twl4030-madc.h.
Definition at line 86 of file twl4030-madc.h.
#define TWL4030_MADC_CTRL1 0x00 |
Definition at line 68 of file twl4030-madc.h.
#define TWL4030_MADC_CTRL2 0x01 |
Definition at line 69 of file twl4030-madc.h.
#define TWL4030_MADC_CTRL_SW1 0x12 |
Definition at line 79 of file twl4030-madc.h.
#define TWL4030_MADC_CTRL_SW2 0x13 |
Definition at line 80 of file twl4030-madc.h.
#define TWL4030_MADC_EOC_SW (1 << 1) |
Definition at line 88 of file twl4030-madc.h.
#define TWL4030_MADC_GPCH0_LSB 0x37 |
Definition at line 83 of file twl4030-madc.h.
#define TWL4030_MADC_ICHG TWL4030_MADC_ADCIN10 |
Definition at line 112 of file twl4030-madc.h.
#define TWL4030_MADC_MADCON (1 << 0) /* MADC power on */ |
Definition at line 85 of file twl4030-madc.h.
#define TWL4030_MADC_MAX_CHANNELS 16 |
Definition at line 33 of file twl4030-madc.h.
#define TWL4030_MADC_RTAVERAGE_LSB 0x04 |
Definition at line 75 of file twl4030-madc.h.
#define TWL4030_MADC_RTCH0_LSB 0x17 |
Definition at line 82 of file twl4030-madc.h.
#define TWL4030_MADC_RTSELECT_LSB 0x02 |
Definition at line 71 of file twl4030-madc.h.
#define TWL4030_MADC_SW1AVERAGE_LSB 0x08 |
Definition at line 76 of file twl4030-madc.h.
#define TWL4030_MADC_SW1SELECT_LSB 0x06 |
Definition at line 72 of file twl4030-madc.h.
#define TWL4030_MADC_SW2AVERAGE_LSB 0x0C |
Definition at line 77 of file twl4030-madc.h.
#define TWL4030_MADC_SW2SELECT_LSB 0x0A |
Definition at line 73 of file twl4030-madc.h.
#define TWL4030_MADC_SW_START (1 << 5) |
Definition at line 90 of file twl4030-madc.h.
#define TWL4030_MADC_VBAT TWL4030_MADC_ADCIN12 |
Definition at line 114 of file twl4030-madc.h.
#define TWL4030_MADC_VBKB TWL4030_MADC_ADCIN9 |
Definition at line 111 of file twl4030-madc.h.
#define TWL4030_MADC_VBUS TWL4030_MADC_ADCIN8 |
Definition at line 110 of file twl4030-madc.h.
#define TWL4030_MADC_VCHG TWL4030_MADC_ADCIN11 |
Definition at line 113 of file twl4030-madc.h.
#define TWL4030_REG_GPBR1 0x0c |
Definition at line 133 of file twl4030-madc.h.
enum conversion_methods |
Definition at line 55 of file twl4030-madc.h.
enum sample_type |
Definition at line 62 of file twl4030-madc.h.
Definition at line 602 of file twl4030-madc.c.
int twl4030_madc_conversion | ( | struct twl4030_madc_request * | conv | ) |
Definition at line 507 of file twl4030-madc.c.