Introduce generic "outputs" DTS binding
Replaces previous "switch" and "pwm-out" bindings and allows to reference either gpio or pwm handle and specify maximum current. Also replacing CONFIG_HAS_LOAD and CONFIG_HAS_USB_PWR with DT_ variants.
This commit is contained in:
+2
-2
@@ -41,11 +41,11 @@ extern Charger charger;
|
||||
extern BatConf bat_conf;
|
||||
extern BatConf bat_conf_user;
|
||||
|
||||
#if CONFIG_HAS_LOAD_OUTPUT
|
||||
#if DT_OUTPUTS_LOAD_PRESENT
|
||||
extern LoadOutput load;
|
||||
#endif
|
||||
|
||||
#if CONFIG_HAS_USB_PWR_OUTPUT
|
||||
#if DT_OUTPUTS_USB_PWR_PRESENT
|
||||
extern LoadOutput usb_pwr;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user