linux/drivers/power/supply/bq25980_charger.h

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ */

#ifndef BQ25980_CHARGER_H
#define BQ25980_CHARGER_H

#define BQ25980_MANUFACTURER

#define BQ25980_BATOVP
#define BQ25980_BATOVP_ALM
#define BQ25980_BATOCP
#define BQ25980_BATOCP_ALM
#define BQ25980_BATUCP_ALM
#define BQ25980_CHRGR_CTRL_1
#define BQ25980_BUSOVP
#define BQ25980_BUSOVP_ALM
#define BQ25980_BUSOCP
#define BQ25980_BUSOCP_ALM
#define BQ25980_TEMP_CONTROL
#define BQ25980_TDIE_ALM
#define BQ25980_TSBUS_FLT
#define BQ25980_TSBAT_FLG
#define BQ25980_VAC_CONTROL
#define BQ25980_CHRGR_CTRL_2
#define BQ25980_CHRGR_CTRL_3
#define BQ25980_CHRGR_CTRL_4
#define BQ25980_CHRGR_CTRL_5
#define BQ25980_STAT1
#define BQ25980_STAT2
#define BQ25980_STAT3
#define BQ25980_STAT4
#define BQ25980_STAT5
#define BQ25980_FLAG1
#define BQ25980_FLAG2
#define BQ25980_FLAG3
#define BQ25980_FLAG4
#define BQ25980_FLAG5
#define BQ25980_MASK1
#define BQ25980_MASK2
#define BQ25980_MASK3
#define BQ25980_MASK4
#define BQ25980_MASK5
#define BQ25980_DEVICE_INFO
#define BQ25980_ADC_CONTROL1
#define BQ25980_ADC_CONTROL2
#define BQ25980_IBUS_ADC_MSB
#define BQ25980_IBUS_ADC_LSB
#define BQ25980_VBUS_ADC_MSB
#define BQ25980_VBUS_ADC_LSB
#define BQ25980_VAC1_ADC_MSB
#define BQ25980_VAC1_ADC_LSB
#define BQ25980_VAC2_ADC_MSB
#define BQ25980_VAC2_ADC_LSB
#define BQ25980_VOUT_ADC_MSB
#define BQ25980_VOUT_ADC_LSB
#define BQ25980_VBAT_ADC_MSB
#define BQ25980_VBAT_ADC_LSB
#define BQ25980_IBAT_ADC_MSB
#define BQ25980_IBAT_ADC_LSB
#define BQ25980_TSBUS_ADC_MSB
#define BQ25980_TSBUS_ADC_LSB
#define BQ25980_TSBAT_ADC_MSB
#define BQ25980_TSBAT_ADC_LSB
#define BQ25980_TDIE_ADC_MSB
#define BQ25980_TDIE_ADC_LSB
#define BQ25980_DEGLITCH_TIME
#define BQ25980_CHRGR_CTRL_6

#define BQ25980_BUSOCP_STEP_uA
#define BQ25980_BUSOCP_OFFSET_uA

#define BQ25980_BUSOCP_DFLT_uA
#define BQ25975_BUSOCP_DFLT_uA
#define BQ25960_BUSOCP_DFLT_uA

#define BQ25980_BUSOCP_MIN_uA

#define BQ25980_BUSOCP_SC_MAX_uA
#define BQ25975_BUSOCP_SC_MAX_uA
#define BQ25960_BUSOCP_SC_MAX_uA

#define BQ25980_BUSOCP_BYP_MAX_uA
#define BQ25975_BUSOCP_BYP_MAX_uA
#define BQ25960_BUSOCP_BYP_MAX_uA

#define BQ25980_BUSOVP_SC_STEP_uV
#define BQ25975_BUSOVP_SC_STEP_uV
#define BQ25960_BUSOVP_SC_STEP_uV
#define BQ25980_BUSOVP_SC_OFFSET_uV
#define BQ25975_BUSOVP_SC_OFFSET_uV
#define BQ25960_BUSOVP_SC_OFFSET_uV

#define BQ25980_BUSOVP_BYP_STEP_uV
#define BQ25975_BUSOVP_BYP_STEP_uV
#define BQ25960_BUSOVP_BYP_STEP_uV
#define BQ25980_BUSOVP_BYP_OFFSET_uV
#define BQ25975_BUSOVP_BYP_OFFSET_uV
#define BQ25960_BUSOVP_BYP_OFFSET_uV

#define BQ25980_BUSOVP_DFLT_uV
#define BQ25980_BUSOVP_BYPASS_DFLT_uV
#define BQ25975_BUSOVP_DFLT_uV
#define BQ25975_BUSOVP_BYPASS_DFLT_uV
#define BQ25960_BUSOVP_DFLT_uV

#define BQ25980_BUSOVP_SC_MIN_uV
#define BQ25975_BUSOVP_SC_MIN_uV
#define BQ25960_BUSOVP_SC_MIN_uV
#define BQ25980_BUSOVP_BYP_MIN_uV
#define BQ25975_BUSOVP_BYP_MIN_uV
#define BQ25960_BUSOVP_BYP_MIN_uV

#define BQ25980_BUSOVP_SC_MAX_uV
#define BQ25975_BUSOVP_SC_MAX_uV
#define BQ25960_BUSOVP_SC_MAX_uV

#define BQ25980_BUSOVP_BYP_MAX_uV
#define BQ25975_BUSOVP_BYP_MAX_uV
#define BQ25960_BUSOVP_BYP_MAX_uV

#define BQ25980_BATOVP_STEP_uV
#define BQ25975_BATOVP_STEP_uV
#define BQ25960_BATOVP_STEP_uV

#define BQ25980_BATOVP_OFFSET_uV
#define BQ25975_BATOVP_OFFSET_uV
#define BQ25960_BATOVP_OFFSET_uV

#define BQ25980_BATOVP_DFLT_uV
#define BQ25975_BATOVP_DFLT_uV
#define BQ25960_BATOVP_DFLT_uV

#define BQ25980_BATOVP_MIN_uV
#define BQ25975_BATOVP_MIN_uV
#define BQ25960_BATOVP_MIN_uV

#define BQ25980_BATOVP_MAX_uV
#define BQ25975_BATOVP_MAX_uV
#define BQ25960_BATOVP_MAX_uV

#define BQ25980_BATOCP_STEP_uA

#define BQ25980_BATOCP_MASK

#define BQ25980_BATOCP_DFLT_uA
#define BQ25960_BATOCP_DFLT_uA

#define BQ25980_BATOCP_MIN_uA

#define BQ25980_BATOCP_MAX_uA
#define BQ25975_BATOCP_MAX_uA
#define BQ25960_BATOCP_MAX_uA

#define BQ25980_ENABLE_HIZ
#define BQ25980_DISABLE_HIZ
#define BQ25980_EN_BYPASS
#define BQ25980_STAT1_OVP_MASK
#define BQ25980_STAT3_OVP_MASK
#define BQ25980_STAT1_OCP_MASK
#define BQ25980_STAT2_OCP_MASK
#define BQ25980_STAT4_TFLT_MASK
#define BQ25980_WD_STAT
#define BQ25980_PRESENT_MASK
#define BQ25980_CHG_EN
#define BQ25980_EN_HIZ
#define BQ25980_ADC_EN

#define BQ25980_ADC_VOLT_STEP_uV
#define BQ25980_ADC_CURR_STEP_uA
#define BQ25980_ADC_POLARITY_BIT

#define BQ25980_WATCHDOG_MASK
#define BQ25980_WATCHDOG_DIS
#define BQ25980_WATCHDOG_MAX
#define BQ25980_WATCHDOG_MIN
#define BQ25980_NUM_WD_VAL

#endif /* BQ25980_CHARGER_H */