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
250250 unsigned *vsel_mask);
251251 int regulator_list_hardware_vsel(struct regulator *regulator,
252252 unsigned selector);
253+int regulator_hardware_enable(struct regulator *regulator, bool enable);
253254
254255 /* regulator notifier block */
255256 int regulator_register_notifier(struct regulator *regulator,
@@ -571,6 +572,12 @@ static inline int regulator_list_hardware_vsel(struct regulator *regulator, · 315 unmodified lines
571572 return -EOPNOTSUPP;
572573 }
573574
575+static inline int regulator_hardware_enable(struct regulator *regulator,
576+ bool enable)
577+{
578+ return -EOPNOTSUPP;
579+}
580+
574581 static inline int regulator_register_notifier(struct regulator *regulator,
575582 struct notifier_block *nb)
576583 {