#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/max8925.h>
Go to the source code of this file.
#define LDO_I2C_EN 0x1 /* Enable by i2c */ |
#define LDO_I2C_EN_MASK 0x1 /* Enable mask by i2c */ |
#define LDO_I2C_EN_SHIFT 0 /* Enable offset by i2c */ |
#define LDO_SEQ_I2C 0x7 /* Power U/D by i2c */ |
#define LDO_SEQ_MASK 0x7 /* Power U/D sequence mask */ |
Value:{ \
.desc = { \
.name = "LDO" #_id, \
.ops = &max8925_regulator_ldo_ops, \
.id = MAX8925_ID_LDO##_id, \
.n_voltages = 64, \
.uV_step =
step * 1000, \
}, \
.vol_reg = MAX8925_LDOVOUT##_id, \
.enable_reg = MAX8925_LDOCTL##_id, \
}
Definition at line 174 of file max8925-regulator.c.
Value:{ \
.desc = { \
.name = "SDV" #_id, \
.ops = &max8925_regulator_sdv_ops, \
.id = MAX8925_ID_SD##_id, \
.n_voltages = 64, \
.uV_step =
step * 1000, \
}, \
.enable_reg = MAX8925_SDCTL##_id, \
}
Definition at line 158 of file max8925-regulator.c.
#define SD1_DVM_EN 6 /* SDV1 bit 6 */ |
#define SD1_DVM_SHIFT 5 /* SDCTL1 bit5 */ |
#define SD1_DVM_STEP 50000 |
#define SD1_DVM_VMAX 1000000 |
#define SD1_DVM_VMIN 850000 |
MODULE_ALIAS |
( |
"platform:max8925-regulator" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Regulator Driver for Maxim 8925 PMIC" |
| ) |
|
module_exit |
( |
max8925_regulator_exit |
| ) |
|
subsys_initcall |
( |
max8925_regulator_init |
| ) |
|