# Copyright 2023 Cirrus Logic, Inc.
# Copyright 2025 Palta Tech, S.A
#
# SPDX-License-Identifier: Apache-2.0

menuconfig CHARGER
	bool "Battery charger drivers"
	help
	  Enable battery charger driver configuration.

if CHARGER

module = CHARGER
module-str = charger
source "subsys/logging/Kconfig.template.log_config"

config CHARGER_INIT_PRIORITY
	int "Battery charger init priority"
	default 90
	help
	  Battery charger initialization priority.

config CHARGER_HAS_DISCHARGE_CURRENT_NOTIFICATIONS
	bool
	help
	  This symbol is y if the charger supports discharge
	  current notifications.

config CHARGER_HAS_SYSTEM_VOLTAGE_NOTIFICATIONS
	bool
	help
	  This symbol is y if the charger supports system
	  voltage notifications.

menu "Discharge current notifications"

config CHARGER_DISCHARGE_CURRENT_NOTIFICATIONS
	bool "Support discharge current notifications"
	depends on CHARGER_HAS_DISCHARGE_CURRENT_NOTIFICATIONS
	help
	  Enables support for discharge current notifications

endmenu

menu "System voltage notification"

config CHARGER_SYSTEM_VOLTAGE_NOTIFICATIONS
	bool "Support system voltage notifications"
	depends on CHARGER_HAS_SYSTEM_VOLTAGE_NOTIFICATIONS
	help
	  Enables support for system voltage notifications
endmenu

# zephyr-keep-sorted-start
source "drivers/charger/Kconfig.axp2101"
source "drivers/charger/Kconfig.bq24190"
source "drivers/charger/Kconfig.bq2518x"
source "drivers/charger/Kconfig.bq25713"
source "drivers/charger/Kconfig.max20335"
source "drivers/charger/Kconfig.pca9422"
source "drivers/charger/Kconfig.pf1550"
source "drivers/charger/Kconfig.sbs_charger"
# zephyr-keep-sorted-stop

endif # CHARGER
