linux/include/linux/mfd/wm831x/auxadc.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * include/linux/mfd/wm831x/auxadc.h -- Auxiliary ADC interface for WM831x
 *
 * Copyright 2009 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <[email protected]>
 */

#ifndef __MFD_WM831X_AUXADC_H__
#define __MFD_WM831X_AUXADC_H__

struct wm831x;

/*
 * R16429 (0x402D) - AuxADC Data
 */
#define WM831X_AUX_DATA_SRC_MASK
#define WM831X_AUX_DATA_SRC_SHIFT
#define WM831X_AUX_DATA_SRC_WIDTH
#define WM831X_AUX_DATA_MASK
#define WM831X_AUX_DATA_SHIFT
#define WM831X_AUX_DATA_WIDTH

/*
 * R16430 (0x402E) - AuxADC Control
 */
#define WM831X_AUX_ENA
#define WM831X_AUX_ENA_MASK
#define WM831X_AUX_ENA_SHIFT
#define WM831X_AUX_ENA_WIDTH
#define WM831X_AUX_CVT_ENA
#define WM831X_AUX_CVT_ENA_MASK
#define WM831X_AUX_CVT_ENA_SHIFT
#define WM831X_AUX_CVT_ENA_WIDTH
#define WM831X_AUX_SLPENA
#define WM831X_AUX_SLPENA_MASK
#define WM831X_AUX_SLPENA_SHIFT
#define WM831X_AUX_SLPENA_WIDTH
#define WM831X_AUX_FRC_ENA
#define WM831X_AUX_FRC_ENA_MASK
#define WM831X_AUX_FRC_ENA_SHIFT
#define WM831X_AUX_FRC_ENA_WIDTH
#define WM831X_AUX_RATE_MASK
#define WM831X_AUX_RATE_SHIFT
#define WM831X_AUX_RATE_WIDTH

/*
 * R16431 (0x402F) - AuxADC Source
 */
#define WM831X_AUX_CAL_SEL
#define WM831X_AUX_CAL_SEL_MASK
#define WM831X_AUX_CAL_SEL_SHIFT
#define WM831X_AUX_CAL_SEL_WIDTH
#define WM831X_AUX_BKUP_BATT_SEL
#define WM831X_AUX_BKUP_BATT_SEL_MASK
#define WM831X_AUX_BKUP_BATT_SEL_SHIFT
#define WM831X_AUX_BKUP_BATT_SEL_WIDTH
#define WM831X_AUX_WALL_SEL
#define WM831X_AUX_WALL_SEL_MASK
#define WM831X_AUX_WALL_SEL_SHIFT
#define WM831X_AUX_WALL_SEL_WIDTH
#define WM831X_AUX_BATT_SEL
#define WM831X_AUX_BATT_SEL_MASK
#define WM831X_AUX_BATT_SEL_SHIFT
#define WM831X_AUX_BATT_SEL_WIDTH
#define WM831X_AUX_USB_SEL
#define WM831X_AUX_USB_SEL_MASK
#define WM831X_AUX_USB_SEL_SHIFT
#define WM831X_AUX_USB_SEL_WIDTH
#define WM831X_AUX_SYSVDD_SEL
#define WM831X_AUX_SYSVDD_SEL_MASK
#define WM831X_AUX_SYSVDD_SEL_SHIFT
#define WM831X_AUX_SYSVDD_SEL_WIDTH
#define WM831X_AUX_BATT_TEMP_SEL
#define WM831X_AUX_BATT_TEMP_SEL_MASK
#define WM831X_AUX_BATT_TEMP_SEL_SHIFT
#define WM831X_AUX_BATT_TEMP_SEL_WIDTH
#define WM831X_AUX_CHIP_TEMP_SEL
#define WM831X_AUX_CHIP_TEMP_SEL_MASK
#define WM831X_AUX_CHIP_TEMP_SEL_SHIFT
#define WM831X_AUX_CHIP_TEMP_SEL_WIDTH
#define WM831X_AUX_AUX4_SEL
#define WM831X_AUX_AUX4_SEL_MASK
#define WM831X_AUX_AUX4_SEL_SHIFT
#define WM831X_AUX_AUX4_SEL_WIDTH
#define WM831X_AUX_AUX3_SEL
#define WM831X_AUX_AUX3_SEL_MASK
#define WM831X_AUX_AUX3_SEL_SHIFT
#define WM831X_AUX_AUX3_SEL_WIDTH
#define WM831X_AUX_AUX2_SEL
#define WM831X_AUX_AUX2_SEL_MASK
#define WM831X_AUX_AUX2_SEL_SHIFT
#define WM831X_AUX_AUX2_SEL_WIDTH
#define WM831X_AUX_AUX1_SEL
#define WM831X_AUX_AUX1_SEL_MASK
#define WM831X_AUX_AUX1_SEL_SHIFT
#define WM831X_AUX_AUX1_SEL_WIDTH

/*
 * R16432 (0x4030) - Comparator Control
 */
#define WM831X_DCOMP4_STS
#define WM831X_DCOMP4_STS_MASK
#define WM831X_DCOMP4_STS_SHIFT
#define WM831X_DCOMP4_STS_WIDTH
#define WM831X_DCOMP3_STS
#define WM831X_DCOMP3_STS_MASK
#define WM831X_DCOMP3_STS_SHIFT
#define WM831X_DCOMP3_STS_WIDTH
#define WM831X_DCOMP2_STS
#define WM831X_DCOMP2_STS_MASK
#define WM831X_DCOMP2_STS_SHIFT
#define WM831X_DCOMP2_STS_WIDTH
#define WM831X_DCOMP1_STS
#define WM831X_DCOMP1_STS_MASK
#define WM831X_DCOMP1_STS_SHIFT
#define WM831X_DCOMP1_STS_WIDTH
#define WM831X_DCMP4_ENA
#define WM831X_DCMP4_ENA_MASK
#define WM831X_DCMP4_ENA_SHIFT
#define WM831X_DCMP4_ENA_WIDTH
#define WM831X_DCMP3_ENA
#define WM831X_DCMP3_ENA_MASK
#define WM831X_DCMP3_ENA_SHIFT
#define WM831X_DCMP3_ENA_WIDTH
#define WM831X_DCMP2_ENA
#define WM831X_DCMP2_ENA_MASK
#define WM831X_DCMP2_ENA_SHIFT
#define WM831X_DCMP2_ENA_WIDTH
#define WM831X_DCMP1_ENA
#define WM831X_DCMP1_ENA_MASK
#define WM831X_DCMP1_ENA_SHIFT
#define WM831X_DCMP1_ENA_WIDTH

/*
 * R16433 (0x4031) - Comparator 1
 */
#define WM831X_DCMP1_SRC_MASK
#define WM831X_DCMP1_SRC_SHIFT
#define WM831X_DCMP1_SRC_WIDTH
#define WM831X_DCMP1_GT
#define WM831X_DCMP1_GT_MASK
#define WM831X_DCMP1_GT_SHIFT
#define WM831X_DCMP1_GT_WIDTH
#define WM831X_DCMP1_THR_MASK
#define WM831X_DCMP1_THR_SHIFT
#define WM831X_DCMP1_THR_WIDTH

/*
 * R16434 (0x4032) - Comparator 2
 */
#define WM831X_DCMP2_SRC_MASK
#define WM831X_DCMP2_SRC_SHIFT
#define WM831X_DCMP2_SRC_WIDTH
#define WM831X_DCMP2_GT
#define WM831X_DCMP2_GT_MASK
#define WM831X_DCMP2_GT_SHIFT
#define WM831X_DCMP2_GT_WIDTH
#define WM831X_DCMP2_THR_MASK
#define WM831X_DCMP2_THR_SHIFT
#define WM831X_DCMP2_THR_WIDTH

/*
 * R16435 (0x4033) - Comparator 3
 */
#define WM831X_DCMP3_SRC_MASK
#define WM831X_DCMP3_SRC_SHIFT
#define WM831X_DCMP3_SRC_WIDTH
#define WM831X_DCMP3_GT
#define WM831X_DCMP3_GT_MASK
#define WM831X_DCMP3_GT_SHIFT
#define WM831X_DCMP3_GT_WIDTH
#define WM831X_DCMP3_THR_MASK
#define WM831X_DCMP3_THR_SHIFT
#define WM831X_DCMP3_THR_WIDTH

/*
 * R16436 (0x4034) - Comparator 4
 */
#define WM831X_DCMP4_SRC_MASK
#define WM831X_DCMP4_SRC_SHIFT
#define WM831X_DCMP4_SRC_WIDTH
#define WM831X_DCMP4_GT
#define WM831X_DCMP4_GT_MASK
#define WM831X_DCMP4_GT_SHIFT
#define WM831X_DCMP4_GT_WIDTH
#define WM831X_DCMP4_THR_MASK
#define WM831X_DCMP4_THR_SHIFT
#define WM831X_DCMP4_THR_WIDTH

#define WM831X_AUX_CAL_FACTOR
#define WM831X_AUX_CAL_NOMINAL

enum wm831x_auxadc {};

int wm831x_auxadc_read(struct wm831x *wm831x, enum wm831x_auxadc input);
int wm831x_auxadc_read_uv(struct wm831x *wm831x, enum wm831x_auxadc input);

#endif