Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/max8925.h>
Go to the source code of this file.
Data Structures | |
struct | max8925_power_info |
Macros | |
#define | MAX8925_OUT5VEN 0x54 |
#define | MAX8925_OUT3VEN 0x58 |
#define | MAX8925_CHG_CNTL1 0x7c |
#define | MAX8925_CHG_STAT_VSYSLOW (1 << 0) |
#define | MAX8925_CHG_STAT_MODE_MASK (3 << 2) |
#define | MAX8925_CHG_STAT_EN_MASK (1 << 4) |
#define | MAX8925_CHG_MBDET (1 << 1) |
#define | MAX8925_CHG_AC_RANGE_MASK (3 << 6) |
#define | MAX8925_ADC_RES_CNFG1 0x06 |
#define | MAX8925_ADC_AVG_CNFG1 0x07 |
#define | MAX8925_ADC_ACQ_CNFG1 0x08 |
#define | MAX8925_ADC_ACQ_CNFG2 0x09 |
#define | MAX8925_ADC_AUX2 0x62 |
#define | MAX8925_ADC_VCHG 0x64 |
#define | MAX8925_ADC_VBBATT 0x66 |
#define | MAX8925_ADC_VMBATT 0x68 |
#define | MAX8925_ADC_ISNS 0x6a |
#define | MAX8925_ADC_THM 0x6c |
#define | MAX8925_ADC_TDIE 0x6e |
#define | MAX8925_CMD_AUX2 0xc8 |
#define | MAX8925_CMD_VCHG 0xd0 |
#define | MAX8925_CMD_VBBATT 0xd8 |
#define | MAX8925_CMD_VMBATT 0xe0 |
#define | MAX8925_CMD_ISNS 0xe8 |
#define | MAX8925_CMD_THM 0xf0 |
#define | MAX8925_CMD_TDIE 0xf8 |
#define | REQUEST_IRQ(_irq, _name) |
Enumerations | |
enum | { MEASURE_AUX2, MEASURE_VCHG, MEASURE_VBBATT, MEASURE_VMBATT, MEASURE_ISNS, MEASURE_THM, MEASURE_TDIE, MEASURE_MAX } |
Functions | |
module_platform_driver (max8925_power_driver) | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("Power supply driver for MAX8925") | |
MODULE_ALIAS ("platform:max8925-power") | |
#define MAX8925_ADC_ACQ_CNFG1 0x08 |
Definition at line 36 of file max8925_power.c.
#define MAX8925_ADC_ACQ_CNFG2 0x09 |
Definition at line 37 of file max8925_power.c.
#define MAX8925_ADC_AUX2 0x62 |
Definition at line 39 of file max8925_power.c.
#define MAX8925_ADC_AVG_CNFG1 0x07 |
Definition at line 35 of file max8925_power.c.
#define MAX8925_ADC_ISNS 0x6a |
Definition at line 43 of file max8925_power.c.
#define MAX8925_ADC_RES_CNFG1 0x06 |
Definition at line 34 of file max8925_power.c.
#define MAX8925_ADC_TDIE 0x6e |
Definition at line 45 of file max8925_power.c.
#define MAX8925_ADC_THM 0x6c |
Definition at line 44 of file max8925_power.c.
#define MAX8925_ADC_VBBATT 0x66 |
Definition at line 41 of file max8925_power.c.
#define MAX8925_ADC_VCHG 0x64 |
Definition at line 40 of file max8925_power.c.
#define MAX8925_ADC_VMBATT 0x68 |
Definition at line 42 of file max8925_power.c.
#define MAX8925_CHG_AC_RANGE_MASK (3 << 6) |
Definition at line 31 of file max8925_power.c.
#define MAX8925_CHG_CNTL1 0x7c |
Definition at line 24 of file max8925_power.c.
#define MAX8925_CHG_MBDET (1 << 1) |
Definition at line 30 of file max8925_power.c.
#define MAX8925_CHG_STAT_EN_MASK (1 << 4) |
Definition at line 29 of file max8925_power.c.
#define MAX8925_CHG_STAT_MODE_MASK (3 << 2) |
Definition at line 28 of file max8925_power.c.
#define MAX8925_CHG_STAT_VSYSLOW (1 << 0) |
Definition at line 27 of file max8925_power.c.
#define MAX8925_CMD_AUX2 0xc8 |
Definition at line 46 of file max8925_power.c.
#define MAX8925_CMD_ISNS 0xe8 |
Definition at line 50 of file max8925_power.c.
#define MAX8925_CMD_TDIE 0xf8 |
Definition at line 52 of file max8925_power.c.
#define MAX8925_CMD_THM 0xf0 |
Definition at line 51 of file max8925_power.c.
#define MAX8925_CMD_VBBATT 0xd8 |
Definition at line 48 of file max8925_power.c.
#define MAX8925_CMD_VCHG 0xd0 |
Definition at line 47 of file max8925_power.c.
#define MAX8925_CMD_VMBATT 0xe0 |
Definition at line 49 of file max8925_power.c.
#define MAX8925_OUT3VEN 0x58 |
Definition at line 23 of file max8925_power.c.
#define MAX8925_OUT5VEN 0x54 |
Definition at line 22 of file max8925_power.c.
#define REQUEST_IRQ | ( | _irq, | |
_name | |||
) |
Definition at line 349 of file max8925_power.c.
anonymous enum |
MEASURE_AUX2 | |
MEASURE_VCHG | |
MEASURE_VBBATT | |
MEASURE_VMBATT | |
MEASURE_ISNS | |
MEASURE_THM | |
MEASURE_TDIE | |
MEASURE_MAX |
Definition at line 54 of file max8925_power.c.
MODULE_ALIAS | ( | "platform:max8925-power" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | max8925_power_driver | ) |