linux/include/linux/mfd/max5970.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Device driver for regulators in MAX5970 and MAX5978 IC
 *
 * Copyright (c) 2022 9elements GmbH
 *
 * Author: Patrick Rudolph <[email protected]>
 */

#ifndef _MFD_MAX5970_H
#define _MFD_MAX5970_H

#include <linux/regmap.h>

#define MAX5970_NUM_SWITCHES
#define MAX5978_NUM_SWITCHES
#define MAX5970_NUM_LEDS

struct max5970_data {};

enum max5970_chip_type {};

#define MAX5970_REG_CURRENT_L(ch)
#define MAX5970_REG_CURRENT_H(ch)
#define MAX5970_REG_VOLTAGE_L(ch)
#define MAX5970_REG_VOLTAGE_H(ch)
#define MAX5970_REG_MON_RANGE
#define MAX5970_MON_MASK
#define MAX5970_MON(reg, ch)
#define MAX5970_MON_MAX_RANGE_UV

#define MAX5970_REG_CH_UV_WARN_H(ch)
#define MAX5970_REG_CH_UV_WARN_L(ch)
#define MAX5970_REG_CH_UV_CRIT_H(ch)
#define MAX5970_REG_CH_UV_CRIT_L(ch)
#define MAX5970_REG_CH_OV_WARN_H(ch)
#define MAX5970_REG_CH_OV_WARN_L(ch)
#define MAX5970_REG_CH_OV_CRIT_H(ch)
#define MAX5970_REG_CH_OV_CRIT_L(ch)

#define MAX5970_VAL2REG_H(x)
#define MAX5970_VAL2REG_L(x)

#define MAX5970_REG_DAC_FAST(ch)

#define MAX5970_FAST2SLOW_RATIO

#define MAX5970_REG_STATUS0
#define MAX5970_CB_IFAULTF(ch)
#define MAX5970_CB_IFAULTS(ch)

#define MAX5970_REG_STATUS1
#define STATUS1_PROT_MASK
#define STATUS1_PROT(reg)
#define STATUS1_PROT_SHUTDOWN
#define STATUS1_PROT_CLEAR_PG
#define STATUS1_PROT_ALERT_ONLY

#define MAX5970_REG_STATUS2
#define MAX5970_IRNG_MASK
#define MAX5970_IRNG(reg, ch)

#define MAX5970_REG_STATUS3
#define MAX5970_STATUS3_ALERT
#define MAX5970_STATUS3_PG(ch)

#define MAX5970_REG_FAULT0
#define UV_STATUS_WARN(ch)
#define UV_STATUS_CRIT(ch)

#define MAX5970_REG_FAULT1
#define OV_STATUS_WARN(ch)
#define OV_STATUS_CRIT(ch)

#define MAX5970_REG_FAULT2
#define OC_STATUS_WARN(ch)

#define MAX5970_REG_CHXEN
#define CHXEN(ch)

#define MAX5970_REG_LED_FLASH

#define MAX_REGISTERS
#define ADC_MASK

#endif				/* _MFD_MAX5970_H */