DC/DC and PWM switch configuration via DTS
As these settings are clearly hardware-specific, configuration was moved from Kconfig (hidden symbols) to DTS. New bindings added.
This commit is contained in:
+6
-2
@@ -4,6 +4,10 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef UNIT_TEST
|
||||
#include <zephyr.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "bat_charger.h"
|
||||
@@ -17,14 +21,14 @@
|
||||
extern DcBus lv_bus;
|
||||
extern PowerPort lv_terminal;
|
||||
|
||||
#if CONFIG_HAS_DCDC_CONVERTER
|
||||
#if DT_COMPAT_DCDC
|
||||
extern DcBus hv_bus;
|
||||
extern PowerPort hv_terminal;
|
||||
extern PowerPort dcdc_lv_port;
|
||||
extern Dcdc dcdc;
|
||||
#endif
|
||||
|
||||
#if CONFIG_HAS_PWM_SWITCH
|
||||
#if DT_COMPAT_PWM_SWITCH
|
||||
extern PwmSwitch pwm_switch;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user