/* * struct tps65090_regulator_plat_data * * @reg_init_data: The regulator init data. * @enable_ext_control: Enable extrenal control or not. Only available for * DCDC1, DCDC2 and DCDC3. * @gpiod: Gpio descriptor if external control is enabled and controlled through * gpio * @overcurrent_wait_valid: True if the overcurrent_wait should be applied. * @overcurrent_wait: Value to set as the overcurrent wait time. This is the * actual bitfield value, not a time in ms (valid value are 0 - 3).
*/ struct tps65090_regulator_plat_data { struct regulator_init_data *reg_init_data; bool enable_ext_control; struct gpio_desc *gpiod; bool overcurrent_wait_valid; int overcurrent_wait;
};
struct tps65090_platform_data { int irq_base;
char **supplied_to;
size_t num_supplicants; int enable_low_current_chrg;
/* * NOTE: the functions below are not intended for use outside * of the TPS65090 sub-device drivers
*/ staticinlineint tps65090_write(struct device *dev, int reg, uint8_t val)
{ struct tps65090 *tps = dev_get_drvdata(dev);
return regmap_write(tps->rmap, reg, val);
}
staticinlineint tps65090_read(struct device *dev, int reg, uint8_t *val)
{ struct tps65090 *tps = dev_get_drvdata(dev); unsignedint temp_val; int ret;
ret = regmap_read(tps->rmap, reg, &temp_val); if (!ret)
*val = temp_val; return ret;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.