#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/slab.h>
#include <linux/regulator/max8649.h>
#include <linux/regmap.h>
Go to the source code of this file.
#define MAX8649_CHIP_ID1 0x08 |
#define MAX8649_CHIP_ID2 0x09 |
#define MAX8649_CONTROL 0x04 |
#define MAX8649_DCDC_STEP 10000 /* uV */ |
#define MAX8649_DCDC_VMAX 1380000 /* uV */ |
#define MAX8649_DCDC_VMIN 750000 /* uV */ |
#define MAX8649_EN_PD (1 << 7) |
#define MAX8649_EXT_MASK (3 << 6) |
#define MAX8649_FORCE_PWM (1 << 7) |
#define MAX8649_MODE0 0x00 |
#define MAX8649_MODE1 0x01 |
#define MAX8649_MODE2 0x02 |
#define MAX8649_MODE3 0x03 |
#define MAX8649_RAMP 0x06 |
#define MAX8649_RAMP_DOWN (1 << 1) |
#define MAX8649_RAMP_MASK (7 << 5) |
#define MAX8649_SYNC 0x05 |
#define MAX8649_SYNC_EXTCLK (1 << 6) |
#define MAX8649_VID0_PD (1 << 6) |
#define MAX8649_VID1_PD (1 << 5) |
#define MAX8649_VID_MASK (3 << 5) |
#define MAX8649_VOL_MASK 0x3f |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
max8649_id |
|
|
) |
| |
module_exit |
( |
max8649_exit |
| ) |
|
subsys_initcall |
( |
max8649_init |
| ) |
|