/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright ( C ) 2011 ST - Ericsson SA
* Written on behalf of Linaro for ST - Ericsson
*
* Author : Linus Walleij < linus . walleij @ linaro . org >
*/
#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 0 x11U
#define STW_CONF1_PDN_VMMC 0 x01U
#define STW_CONF1_VMMC_MASK 0 x0eU
#define STW_CONF1_VMMC_1_8V 0 x02U
#define STW_CONF1_VMMC_2_85V 0 x04U
#define STW_CONF1_VMMC_3V 0 x06U
#define STW_CONF1_VMMC_1_85V 0 x08U
#define STW_CONF1_VMMC_2_6V 0 x0aU
#define STW_CONF1_VMMC_2_7V 0 x0cU
#define STW_CONF1_VMMC_3_3V 0 x0eU
#define STW_CONF1_MMC_LS_STATUS 0 x10U
#define STW_PCTL_REG_LO 0 x1eU
#define STW_PCTL_REG_HI 0 x1fU
#define STW_CONF1_V_MONITORING 0 x20U
#define STW_CONF1_IT_WARN 0 x40U
#define STW_CONF1_PDN_VAUX 0 x80U
#define STW_CONF2 0 x20U
#define STW_CONF2_MASK_TWARN 0 x01U
#define STW_CONF2_VMMC_EXT 0 x02U
#define STW_CONF2_MASK_IT_WAKE_UP 0 x04U
#define STW_CONF2_GPO1 0 x08U
#define STW_CONF2_GPO2 0 x10U
#define STW_VCORE_SLEEP 0 x21U
/**
* struct stw481x - state holder for the Stw481x drivers
* @ i2c_client : corresponding I2C client
* @ map : regmap handle to access device registers
*/
struct stw481x {
struct i2c_client *client;
struct regmap *map;
};
#endif
Messung V0.5 in Prozent C=93 H=100 G=96
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-30)
¤
*© Formatika GbR, Deutschland