/* SPDX-License-Identifier: GPL-2.0 */
/*
* Header file for Intel Merrifield Basin Cove PMIC
*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*/
#ifndef __INTEL_SOC_PMIC_MRFLD_H__
#define __INTEL_SOC_PMIC_MRFLD_H__
#include <linux/bits.h>
#define BCOVE_ID 0 x00
#define BCOVE_ID_MINREV0 GENMASK(2 , 0 )
#define BCOVE_ID_MAJREV0 GENMASK(5 , 3 )
#define BCOVE_ID_VENDID0 GENMASK(7 , 6 )
#define BCOVE_MINOR(x) (unsigned int )(((x) & BCOVE_ID_MINREV0) >> 0 )
#define BCOVE_MAJOR(x) (unsigned int )(((x) & BCOVE_ID_MAJREV0) >> 3 )
#define BCOVE_VENDOR(x) (unsigned int )(((x) & BCOVE_ID_VENDID0) >> 6 )
#define BCOVE_IRQLVL1 0 x01
#define BCOVE_PBIRQ 0 x02
#define BCOVE_TMUIRQ 0 x03
#define BCOVE_THRMIRQ 0 x04
#define BCOVE_BCUIRQ 0 x05
#define BCOVE_ADCIRQ 0 x06
#define BCOVE_CHGRIRQ0 0 x07
#define BCOVE_CHGRIRQ1 0 x08
#define BCOVE_GPIOIRQ 0 x09
#define BCOVE_CRITIRQ 0 x0B
#define BCOVE_MIRQLVL1 0 x0C
#define BCOVE_MPBIRQ 0 x0D
#define BCOVE_MTMUIRQ 0 x0E
#define BCOVE_MTHRMIRQ 0 x0F
#define BCOVE_MBCUIRQ 0 x10
#define BCOVE_MADCIRQ 0 x11
#define BCOVE_MCHGRIRQ0 0 x12
#define BCOVE_MCHGRIRQ1 0 x13
#define BCOVE_MGPIOIRQ 0 x14
#define BCOVE_MCRITIRQ 0 x16
#define BCOVE_SCHGRIRQ0 0 x4E
#define BCOVE_SCHGRIRQ1 0 x4F
/* Level 1 IRQs */
#define BCOVE_LVL1_PWRBTN BIT(0 ) /* power button */
#define BCOVE_LVL1_TMU BIT(1 ) /* time management unit */
#define BCOVE_LVL1_THRM BIT(2 ) /* thermal */
#define BCOVE_LVL1_BCU BIT(3 ) /* burst control unit */
#define BCOVE_LVL1_ADC BIT(4 ) /* ADC */
#define BCOVE_LVL1_CHGR BIT(5 ) /* charger */
#define BCOVE_LVL1_GPIO BIT(6 ) /* GPIO */
#define BCOVE_LVL1_CRIT BIT(7 ) /* critical event */
/* Level 2 IRQs: power button */
#define BCOVE_PBIRQ_PBTN BIT(0 )
#define BCOVE_PBIRQ_UBTN BIT(1 )
/* Level 2 IRQs: ADC */
#define BCOVE_ADCIRQ_BATTEMP BIT(2 )
#define BCOVE_ADCIRQ_SYSTEMP BIT(3 )
#define BCOVE_ADCIRQ_BATTID BIT(4 )
#define BCOVE_ADCIRQ_VIBATT BIT(5 )
#define BCOVE_ADCIRQ_CCTICK BIT(7 )
/* Level 2 IRQs: charger */
#define BCOVE_CHGRIRQ_BAT0ALRT BIT(4 )
#define BCOVE_CHGRIRQ_BAT1ALRT BIT(5 )
#define BCOVE_CHGRIRQ_BATCRIT BIT(6 )
#define BCOVE_CHGRIRQ_VBUSDET BIT(0 )
#define BCOVE_CHGRIRQ_DCDET BIT(1 )
#define BCOVE_CHGRIRQ_BATTDET BIT(2 )
#define BCOVE_CHGRIRQ_USBIDDET BIT(3 )
#endif /* __INTEL_SOC_PMIC_MRFLD_H__ */
Messung V0.5 in Prozent C=90 H=97 G=93
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland