History

Add USB VBUS regulator for RZ/G2L

Merge series from Biju Das <biju.das.jz@bp.renesas.com>: As per RZ/G2L HW manual, VBUS enable can be controlled by the VBOUT bit of the VBUS Control Register(VBENCTL) register in the USBPHY Control. But this IP is in the Reset block. Reset driver exposes this register as regmap and instantiate the USB VBUS regulator device. Consumers(phy device) can use regulator APIs to control VBUS as controlling is done in the atomic context using a new API which is added for the purpose.

Mark Brown committed 2 years ago

Commit db576ed2 parents b147ae7 84fbd61297 files · +3938 −1796Browse files

Showing the changes to include/linux/regulator (1 of 297 files). Show all

Unified · Split

include/linux/regulator/consumer.h+7−0
@@ -250,6 +250,7 @@ int regulator_get_hardware_vsel_register(struct regulator *regulator, · 249 unmodified lines
250 unsigned *vsel_mask);250 unsigned *vsel_mask);
251int regulator_list_hardware_vsel(struct regulator *regulator,251int regulator_list_hardware_vsel(struct regulator *regulator,
252 unsigned selector);252 unsigned selector);
253int regulator_hardware_enable(struct regulator *regulator, bool enable);
253 254
254/* regulator notifier block */255/* regulator notifier block */
255int regulator_register_notifier(struct regulator *regulator,256int regulator_register_notifier(struct regulator *regulator,
@@ -571,6 +572,12 @@ static inline int regulator_list_hardware_vsel(struct regulator *regulator, · 315 unmodified lines
571 return -EOPNOTSUPP;572 return -EOPNOTSUPP;
572}573}
573 574
575static inline int regulator_hardware_enable(struct regulator *regulator,
576 bool enable)
577{
578 return -EOPNOTSUPP;
579}
580
574static inline int regulator_register_notifier(struct regulator *regulator,581static inline int regulator_register_notifier(struct regulator *regulator,
575 struct notifier_block *nb)582 struct notifier_block *nb)
576{583{