Searched refs:LDSW_BASE (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/regulator/ |
D | regulator_npm1300.c | 35 #define LDSW_BASE 0x08U macro 224 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_VOUTSEL + chan, idx); in ldo_set_voltage() 265 ret = mfd_npm1300_reg_read(config->mfd, LDSW_BASE, LDSW_OFFSET_VOUTSEL + chan, &idx); in ldo_get_voltage() 331 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_LDOSEL + chan, 1U); in set_ldsw_mode() 333 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_LDOSEL + chan, 0U); in set_ldsw_mode() 367 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_EN_SET, 1U); in regulator_npm1300_enable() 369 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_EN_SET + 2U, 1U); in regulator_npm1300_enable() 385 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_EN_CLR, 1U); in regulator_npm1300_disable() 387 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_EN_CLR + 2U, 1U); in regulator_npm1300_disable() 442 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_GPISEL + chan, ctrl); in regulator_npm1300_set_ldsw_pin_ctrl() [all …]
|