Searched refs:BUCK_BASE (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/regulator/ |
D | regulator_npm1300.c | 34 #define BUCK_BASE 0x04U macro 153 return mfd_npm1300_reg_write(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_RET + (chan * 2U), in retention_set_voltage() 163 ret = mfd_npm1300_reg_read(config->mfd, BUCK_BASE, BUCK_OFFSET_SW_CTRL, &sel); in buck_get_voltage_index() 171 return mfd_npm1300_reg_read(config->mfd, BUCK_BASE, in buck_get_voltage_index() 176 return mfd_npm1300_reg_read(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_STAT + chan, idx); in buck_get_voltage_index() 200 ret = mfd_npm1300_reg_write(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_NORM + (chan * 2U), in buck_set_voltage() 209 return mfd_npm1300_reg_update(config->mfd, BUCK_BASE, BUCK_OFFSET_SW_CTRL, mask, mask); in buck_set_voltage() 317 ret = mfd_npm1300_reg_update(config->mfd, BUCK_BASE, BUCK_OFFSET_CTRL0, pfm_data, pfm_mask); in set_buck_mode() 322 return mfd_npm1300_reg_write(config->mfd, BUCK_BASE, pwm_reg + (chan * 2U), 1U); in set_buck_mode() 363 return mfd_npm1300_reg_write(config->mfd, BUCK_BASE, BUCK_OFFSET_EN_SET, 1U); in regulator_npm1300_enable() [all …]
|