linux/include/linux/mfd/stw481x.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2011 ST-Ericsson SA
 * Written on behalf of Linaro for ST-Ericsson
 *
 * Author: Linus Walleij <[email protected]>
 */
#ifndef MFD_STW481X_H
#define MFD_STW481X_H

#include <linux/i2c.h>
#include <linux/regulator/machine.h>
#include <linux/regmap.h>
#include <linux/bitops.h>

/* These registers are accessed from more than one driver */
#define STW_CONF1
#define STW_CONF1_PDN_VMMC
#define STW_CONF1_VMMC_MASK
#define STW_CONF1_VMMC_1_8V
#define STW_CONF1_VMMC_2_85V
#define STW_CONF1_VMMC_3V
#define STW_CONF1_VMMC_1_85V
#define STW_CONF1_VMMC_2_6V
#define STW_CONF1_VMMC_2_7V
#define STW_CONF1_VMMC_3_3V
#define STW_CONF1_MMC_LS_STATUS
#define STW_PCTL_REG_LO
#define STW_PCTL_REG_HI
#define STW_CONF1_V_MONITORING
#define STW_CONF1_IT_WARN
#define STW_CONF1_PDN_VAUX
#define STW_CONF2
#define STW_CONF2_MASK_TWARN
#define STW_CONF2_VMMC_EXT
#define STW_CONF2_MASK_IT_WAKE_UP
#define STW_CONF2_GPO1
#define STW_CONF2_GPO2
#define STW_VCORE_SLEEP

/**
 * struct stw481x - state holder for the Stw481x drivers
 * @i2c_client: corresponding I2C client
 * @map: regmap handle to access device registers
 */
struct stw481x {};

#endif