Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/param.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/regmap.h>
#include <linux/regulator/fan53555.h>
Go to the source code of this file.
Data Structures | |
struct | fan53555_device_info |
Macros | |
#define | FAN53555_VSEL0 0x00 |
#define | FAN53555_VSEL1 0x01 |
#define | FAN53555_CONTROL 0x02 |
#define | FAN53555_ID1 0x03 |
#define | FAN53555_ID2 0x04 |
#define | FAN53555_MONITOR 0x05 |
#define | VSEL_BUCK_EN (1 << 7) |
#define | VSEL_MODE (1 << 6) |
#define | VSEL_NSEL_MASK 0x3F |
#define | DIE_ID 0x0F /* ID1 */ |
#define | DIE_REV 0x0F /* ID2 */ |
#define | CTL_OUTPUT_DISCHG (1 << 7) |
#define | CTL_SLEW_MASK (0x7 << 4) |
#define | CTL_SLEW_SHIFT 4 |
#define | CTL_RESET (1 << 2) |
#define | FAN53555_NVOLTAGES 64 /* Numbers of voltages */ |
Enumerations | |
enum | { FAN53555_CHIP_ID_00 = 0, FAN53555_CHIP_ID_01, FAN53555_CHIP_ID_02, FAN53555_CHIP_ID_03, FAN53555_CHIP_ID_04, FAN53555_CHIP_ID_05 } |
Functions | |
module_i2c_driver (fan53555_regulator_driver) | |
MODULE_AUTHOR ("Yunfan Zhang <[email protected]>") | |
MODULE_DESCRIPTION ("FAN53555 regulator driver") | |
MODULE_LICENSE ("GPL v2") | |
#define CTL_OUTPUT_DISCHG (1 << 7) |
Definition at line 46 of file fan53555.c.
#define CTL_RESET (1 << 2) |
Definition at line 49 of file fan53555.c.
#define CTL_SLEW_MASK (0x7 << 4) |
Definition at line 47 of file fan53555.c.
#define CTL_SLEW_SHIFT 4 |
Definition at line 48 of file fan53555.c.
#define DIE_ID 0x0F /* ID1 */ |
Definition at line 43 of file fan53555.c.
#define DIE_REV 0x0F /* ID2 */ |
Definition at line 44 of file fan53555.c.
#define FAN53555_CONTROL 0x02 |
Definition at line 30 of file fan53555.c.
#define FAN53555_ID1 0x03 |
Definition at line 32 of file fan53555.c.
#define FAN53555_ID2 0x04 |
Definition at line 34 of file fan53555.c.
#define FAN53555_MONITOR 0x05 |
Definition at line 36 of file fan53555.c.
#define FAN53555_NVOLTAGES 64 /* Numbers of voltages */ |
Definition at line 51 of file fan53555.c.
#define FAN53555_VSEL0 0x00 |
Definition at line 27 of file fan53555.c.
#define FAN53555_VSEL1 0x01 |
Definition at line 28 of file fan53555.c.
#define VSEL_BUCK_EN (1 << 7) |
Definition at line 39 of file fan53555.c.
#define VSEL_MODE (1 << 6) |
Definition at line 40 of file fan53555.c.
#define VSEL_NSEL_MASK 0x3F |
Definition at line 41 of file fan53555.c.
anonymous enum |
FAN53555_CHIP_ID_00 | |
FAN53555_CHIP_ID_01 | |
FAN53555_CHIP_ID_02 | |
FAN53555_CHIP_ID_03 | |
FAN53555_CHIP_ID_04 | |
FAN53555_CHIP_ID_05 |
Definition at line 54 of file fan53555.c.
MODULE_AUTHOR | ( | "Yunfan Zhang <[email protected]>" | ) |
module_i2c_driver | ( | fan53555_regulator_driver | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |