Searched refs:fet_id (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/power/regulator/ |
| H A D | tps65090_regulator.c | 29 int ret, fet_id; in tps65090_fet_get_enable() local 31 fet_id = dev->driver_data; in tps65090_fet_get_enable() 32 debug("%s: fet_id=%d\n", __func__, fet_id); in tps65090_fet_get_enable() 34 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_get_enable() 50 static int tps65090_fet_set(struct udevice *pmic, int fet_id, bool set) in tps65090_fet_set() argument 60 if (pmic_reg_write(pmic, REG_FET_BASE + fet_id, value)) in tps65090_fet_set() 65 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_set() 82 fet_id, set, ret); in tps65090_fet_set() 89 int ret, fet_id; in tps65090_fet_set_enable() local 93 fet_id = dev->driver_data; in tps65090_fet_set_enable() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | cros_ec_ldo.c | 24 int fet_id, ret; in cros_ec_ldo_xfer() local 35 fet_id = msg->buf[0] - REG_FET_BASE; in cros_ec_ldo_xfer() 36 if (fet_id < 1 || fet_id > MAX_FET_NUM) { in cros_ec_ldo_xfer() 37 debug("%s: Invalid FET %d\n", __func__, fet_id); in cros_ec_ldo_xfer() 44 ret = cros_ec_get_ldo(dev->parent, fet_id, &state); in cros_ec_ldo_xfer() 51 ret = cros_ec_set_ldo(dev->parent, fet_id, on); in cros_ec_ldo_xfer()
|