/external/u-boot/include/power/ |
D | pmic.h | 45 struct pmic; 47 int (*fg_battery_check) (struct pmic *p, struct pmic *bat); 48 int (*fg_battery_update) (struct pmic *p, struct pmic *bat); 52 int (*chrg_type) (struct pmic *p); 53 int (*chrg_bat_present) (struct pmic *p); 54 int (*chrg_state) (struct pmic *p, int state, int current); 59 int (*battery_init) (struct pmic *bat, struct pmic *p1, 60 struct pmic *p2, struct pmic *p3); 61 int (*battery_charge) (struct pmic *bat); 63 struct pmic *chrg, *fg, *muic; [all …]
|
D | max77686_pmic.h | 158 int max77686_set_ldo_voltage(struct pmic *p, int ldo, ulong uV); 159 int max77686_set_ldo_mode(struct pmic *p, int ldo, char opmode); 160 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV); 161 int max77686_set_buck_mode(struct pmic *p, int buck, char opmode);
|
/external/u-boot/drivers/power/ |
D | Kconfig | 5 source "drivers/power/pmic/Kconfig" 18 bool "board without a pmic" 23 bool "axp152 pmic support" 28 Select this to enable support for the axp152 pmic found on most 32 bool "axp209 pmic support" 37 Select this to enable support for the axp209 pmic found on most 41 bool "axp221 / axp223 pmic support" 46 Select this to enable support for the axp221/axp223 pmic found on most 50 bool "axp809 pmic support" 55 Say y here to enable support for the axp809 pmic found on A80 boards. [all …]
|
D | power_core.c | 20 int check_reg(struct pmic *p, u32 reg) in check_reg() 31 int pmic_set_output(struct pmic *p, u32 reg, int out, int on) in pmic_set_output() 49 struct pmic *pmic_alloc(void) in pmic_alloc() 51 struct pmic *p; in pmic_alloc() 66 struct pmic *pmic_get(const char *s) in pmic_get() 68 struct pmic *p; in pmic_get() 81 static int pmic_dump(struct pmic *p) in pmic_dump() 114 struct pmic *p; in pmic_list_names() 127 struct pmic *p; in do_pmic() 210 pmic, CONFIG_SYS_MAXARGS, 1, do_pmic,
|
/external/u-boot/drivers/power/regulator/ |
D | rk8xx.c | 89 static const struct rk8xx_reg_info *get_buck_reg(struct udevice *pmic, in get_buck_reg() argument 92 struct rk8xx_priv *priv = dev_get_priv(pmic); in get_buck_reg() 101 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument 103 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck - 1); in _buck_set_value() 113 return pmic_clrsetbits(pmic, info->vsel_reg, mask, val); in _buck_set_value() 116 static int _buck_set_enable(struct udevice *pmic, int buck, bool enable) in _buck_set_enable() argument 124 ret = pmic_clrsetbits(pmic, REG_DCDC_ILMAX, 0, 3 << (buck * 2)); in _buck_set_enable() 127 ret = pmic_clrsetbits(pmic, REG_DCDC_UV_ACT, 1 << buck, 0); in _buck_set_enable() 132 return pmic_clrsetbits(pmic, REG_DCDC_EN, mask, enable ? mask : 0); in _buck_set_enable() 136 static const struct rk8xx_reg_info *get_ldo_reg(struct udevice *pmic, in get_ldo_reg() argument [all …]
|
D | tps65090_regulator.c | 27 struct udevice *pmic = dev_get_parent(dev); in tps65090_fet_get_enable() local 33 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_get_enable() 49 static int tps65090_fet_set(struct udevice *pmic, int fet_id, bool set) in tps65090_fet_set() argument 59 if (pmic_reg_write(pmic, REG_FET_BASE + fet_id, value)) in tps65090_fet_set() 64 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_set() 87 struct udevice *pmic = dev_get_parent(dev); in tps65090_fet_set_enable() local 97 ret = tps65090_fet_set(pmic, fet_id, enable); in tps65090_fet_set_enable() 105 tps65090_fet_set(pmic, fet_id, false); in tps65090_fet_set_enable()
|
D | as3722_regulator.c | 30 struct udevice *pmic = dev_get_parent(dev); in stepdown_set_enable() local 34 ret = pmic_clrsetbits(pmic, AS3722_SD_CONTROL, 0, 1 << sd); in stepdown_set_enable() 46 struct udevice *pmic = dev_get_parent(dev); in stepdown_get_enable() local 50 ret = pmic_reg_read(pmic, AS3722_SD_CONTROL); in stepdown_get_enable() 72 struct udevice *pmic = dev_get_parent(dev); in ldo_set_enable() local 82 ret = pmic_clrsetbits(pmic, ctrl_reg, !enable << ldo, enable << ldo); in ldo_set_enable() 94 struct udevice *pmic = dev_get_parent(dev); in ldo_get_enable() local 104 ret = pmic_reg_read(pmic, ctrl_reg); in ldo_get_enable()
|
/external/u-boot/doc/driver-model/ |
D | pmic-framework.txt | 27 - drivers/power/pmic/pmic-uclass.c 28 - include/power/pmic.h 63 the PMIC devices should also support this. By the pmic and regulator API's, 78 use pmic read/write directly. 84 * Header: 'include/power/pmic.h' 85 * Core: 'drivers/power/pmic/pmic-uclass.c' 89 * Example: 'drivers/power/pmic/max77686.c' 93 As an example of the pmic driver, please refer to the MAX77686 driver. 99 The 'pmic; command also supports the new API. So the pmic command can be enabled 101 The new pmic command allows to: [all …]
|
/external/u-boot/drivers/power/pmic/ |
D | as3722_gpio.c | 14 int as3722_gpio_configure(struct udevice *pmic, unsigned int gpio, in as3722_gpio_configure() argument 26 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_configure() 38 struct udevice *pmic = dev_get_parent(dev); in as3722_gpio_set_value() local 46 err = pmic_reg_read(pmic, AS3722_GPIO_SIGNAL_OUT); in as3722_gpio_set_value() 61 err = pmic_reg_write(pmic, AS3722_GPIO_SIGNAL_OUT, value); in as3722_gpio_set_value() 73 struct udevice *pmic = dev_get_parent(dev); in as3722_gpio_direction_output() local 84 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_direction_output() 90 err = as3722_gpio_set_value(pmic, gpio, value); in as3722_gpio_direction_output()
|
D | Kconfig | 10 - 'drivers/power/pmic/pmic-uclass.c' 11 - 'include/power/pmic.h' 55 This config enables implementation of driver-model pmic uclass features 62 This config enables implementation of driver-model pmic uclass features 69 This config enables implementation of driver-model pmic uclass features 76 This config enables implementation of driver-model pmic uclass features 83 This config enables implementation of driver-model pmic uclass features 108 Driver binding info: doc/device-tree-bindings/pmic/pm8916.txt 131 Binding info: doc/device-tree-bindings/pmic/s2mps11.txt 139 - sandbox PMIC I/O driver - implements dm pmic operations [all …]
|
D | pmic-uclass.c | 19 int pmic_bind_children(struct udevice *pmic, ofnode parent, in pmic_bind_children() argument 32 debug("%s for '%s' at node offset: %d\n", __func__, pmic->name, in pmic_bind_children() 33 dev_of_offset(pmic)); in pmic_bind_children() 63 ret = device_bind_with_driver_data(pmic, drv, node_name, in pmic_bind_children() 85 debug("Bound: %d children for PMIC: '%s'\n", bind_count, pmic->name); in pmic_bind_children() 194 UCLASS_DRIVER(pmic) = {
|
/external/u-boot/doc/device-tree-bindings/pmic/ |
D | sandbox.txt | 1 Sandbox pmic 4 - drivers/power/pmic/sandbox.c (for parent device) 13 - compatible: "sandbox,pmic" 17 - compatible: "sandbox,i2c-pmic" 19 With the above properties, the pmic device can be used for read/write only. 28 compatible = "sandbox,pmic"; 33 compatible = "sandbox,i2c-pmic";
|
D | s2mps11.txt | 4 - drivers/power/pmic/s2mps11.c 7 - compatible: "samsung,s2mps11-pmic" 10 With those two properties, the pmic device can be used for read/write only. 15 compatible = "samsung,s2mps11-pmic";
|
/external/u-boot/arch/arm/mach-omap2/ |
D | clocks-common.c | 426 u32 get_offset_code(u32 volt_offset, struct pmic_data *pmic) in get_offset_code() argument 430 volt_offset -= pmic->base_offset; in get_offset_code() 432 offset_code = (volt_offset + pmic->step - 1) / pmic->step; in get_offset_code() 438 return offset_code + pmic->start_code; in get_offset_code() 441 void do_scale_vcore(u32 vcore_reg, u32 volt_mv, struct pmic_data *pmic) in do_scale_vcore() argument 450 pmic->pmic_bus_init(); in do_scale_vcore() 452 if (pmic->gpio_en) in do_scale_vcore() 453 ret = gpio_request(pmic->gpio, "PMIC_GPIO"); in do_scale_vcore() 457 pmic->gpio, ret); in do_scale_vcore() 462 if (pmic->gpio_en) in do_scale_vcore() [all …]
|
/external/u-boot/arch/arm/mach-omap2/omap4/ |
D | hw_data.c | 267 .mpu.pmic = &twl6030_4430es1, 271 .core.pmic = &twl6030_4430es1, 275 .mm.pmic = &twl6030_4430es1, 281 .mpu.pmic = &twl6030, 285 .core.pmic = &twl6030, 289 .mm.pmic = &twl6030, 295 .mpu.pmic = &tps62361, 299 .core.pmic = &twl6030, 303 .mm.pmic = &twl6030, 313 .mpu.pmic = &twl6030, [all …]
|
/external/u-boot/drivers/power/battery/ |
D | bat_trats2.c | 15 static int power_battery_charge(struct pmic *bat) in power_battery_charge() 25 static int power_battery_init_trats2(struct pmic *bat_, in power_battery_init_trats2() 26 struct pmic *fg_, in power_battery_init_trats2() 27 struct pmic *chrg_, in power_battery_init_trats2() 28 struct pmic *muic_) in power_battery_init_trats2() 49 struct pmic *p = pmic_alloc(); in power_bat_init()
|
D | bat_trats.c | 16 static int power_battery_charge(struct pmic *bat) in power_battery_charge() 50 static int power_battery_init_trats(struct pmic *bat_, in power_battery_init_trats() 51 struct pmic *fg_, in power_battery_init_trats() 52 struct pmic *chrg_, in power_battery_init_trats() 53 struct pmic *muic_) in power_battery_init_trats() 74 struct pmic *p = pmic_alloc(); in power_bat_init()
|
/external/u-boot/drivers/power/fuel_gauge/ |
D | fg_max17042.c | 17 static int fg_write_regs(struct pmic *p, u8 addr, u16 *data, int num) in fg_write_regs() 31 static int fg_read_regs(struct pmic *p, u8 addr, u16 *data, int num) in fg_read_regs() 48 static int fg_write_and_verify(struct pmic *p, u8 addr, u16 data) in fg_write_and_verify() 65 static void por_fuelgauge_init(struct pmic *p) in por_fuelgauge_init() 193 static int power_update_battery(struct pmic *p, struct pmic *bat) in power_update_battery() 218 static int power_check_battery(struct pmic *p, struct pmic *bat) in power_check_battery() 266 struct pmic *p = pmic_alloc(); in power_fg_init()
|
/external/u-boot/test/dm/ |
D | spmi.c | 51 struct udevice *bus, *pmic; in dm_test_spmi_access() local 55 ut_assertok(device_get_child(bus, 0, &pmic)); in dm_test_spmi_access() 58 ut_asserteq_str(pmic_name, pmic->name); in dm_test_spmi_access() 65 ut_asserteq(pmic_reg_read(pmic, 0xC004), 0x10); in dm_test_spmi_access() 66 ut_asserteq(pmic_reg_read(pmic, 0xC005), 0x5); in dm_test_spmi_access()
|
/external/u-boot/doc/ |
D | README.power-framework | 31 different ICs use different endianess. For this reason struct pmic holds 50 ./drivers/power/pmic/power_{core files}.c 51 e.g. ./drivers/power/pmic/power_core.c 53 ./drivers/power/pmic/<device_function>/<device_function>_<device_name>.c 54 e.g. ./drivers/power/pmic/pmic_max8997.c 64 Everything is a power device described by struct pmic. Even battery is 83 Definition of the struct pmic is only required with proper name and parameters 84 for communication. This is enough to use the "pmic" command in the u-boot 93 needed (defined at ./include/power/pmic.h): 96 -- *fg_battery_update - update the pmic framework with current [all …]
|
/external/u-boot/board/ti/dra7xx/ |
D | evm.c | 379 .mpu.pmic = &tps659038, 390 .eve.pmic = &tps659038, 401 .gpu.pmic = &tps659038, 408 .core.pmic = &tps659038, 418 .iva.pmic = &tps659038, 427 .mpu.pmic = &lp87565, 438 .eve.pmic = &tps659038, 449 .gpu.pmic = &lp87565, 456 .core.pmic = &tps659038, 466 .iva.pmic = &tps659038, [all …]
|
/external/u-boot/drivers/power/mfd/ |
D | fg_max77693.c | 47 static int power_update_battery(struct pmic *p, struct pmic *bat) in power_update_battery() 66 static int power_check_battery(struct pmic *p, struct pmic *bat) in power_check_battery() 116 struct pmic *p = pmic_alloc(); in power_fg_init()
|
/external/u-boot/board/compulab/cl-som-am57x/ |
D | spl.c | 167 .mpu.pmic = &tps659038, 177 .eve.pmic = &tps659038, 187 .gpu.pmic = &tps659038, 193 .core.pmic = &tps659038, 203 .iva.pmic = &tps659038,
|
/external/u-boot/board/ti/am57xx/ |
D | board.c | 327 .mpu.pmic = &tps659038, 338 .eve.pmic = &tps659038, 349 .gpu.pmic = &tps659038, 356 .core.pmic = &tps659038, 366 .iva.pmic = &tps659038, 375 .mpu.pmic = &tps659038, 386 .eve.pmic = &tps659038, 397 .gpu.pmic = &tps659038, 404 .core.pmic = &tps659038, 414 .iva.pmic = &tps659038, [all …]
|
/external/u-boot/board/samsung/common/ |
D | misc.c | 117 struct pmic *pmic; in power_key_pressed() local 121 pmic = pmic_get(KEY_PWR_PMIC_NAME); in power_key_pressed() 122 if (!pmic) { in power_key_pressed() 127 if (pmic_probe(pmic)) in power_key_pressed() 135 if (pmic_reg_read(pmic, reg, &status)) in power_key_pressed()
|