include/linux/mfd/da9055/reg.h

Source file repositories/reference/linux-study-clean/include/linux/mfd/da9055/reg.h

File Facts

System
Linux kernel
Corpus path
include/linux/mfd/da9055/reg.h
Extension
.h
Size
21864 bytes
Lines
686
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __DA9055_REG_H
#define __DA9055_REG_H

/*
 * PMIC registers
 */
 /* PAGE0 */
#define	DA9055_REG_PAGE_CON		0x00

/* System Control and Event Registers */
#define	DA9055_REG_STATUS_A		0x01
#define	DA9055_REG_STATUS_B		0x02
#define	DA9055_REG_FAULT_LOG		0x03
#define	DA9055_REG_EVENT_A		0x04
#define	DA9055_REG_EVENT_B		0x05
#define	DA9055_REG_EVENT_C		0x06
#define	DA9055_REG_IRQ_MASK_A		0x07
#define	DA9055_REG_IRQ_MASK_B		0x08
#define	DA9055_REG_IRQ_MASK_C		0x09
#define	DA9055_REG_CONTROL_A		0x0A
#define	DA9055_REG_CONTROL_B		0x0B
#define	DA9055_REG_CONTROL_C		0x0C
#define	DA9055_REG_CONTROL_D		0x0D
#define	DA9055_REG_CONTROL_E		0x0E
#define	DA9055_REG_PD_DIS		0x0F

/* GPIO Control Registers */
#define	DA9055_REG_GPIO0_1		0x10
#define	DA9055_REG_GPIO2		0x11
#define	DA9055_REG_GPIO_MODE0_2		0x12

/* Regulator Control Registers */
#define	DA9055_REG_BCORE_CONT		0x13
#define	DA9055_REG_BMEM_CONT		0x14
#define	DA9055_REG_LDO1_CONT		0x15
#define	DA9055_REG_LDO2_CONT		0x16
#define	DA9055_REG_LDO3_CONT		0x17
#define	DA9055_REG_LDO4_CONT		0x18
#define	DA9055_REG_LDO5_CONT		0x19
#define	DA9055_REG_LDO6_CONT		0x1A

/* GP-ADC Control Registers */
#define	DA9055_REG_ADC_MAN		0x1B
#define	DA9055_REG_ADC_CONT		0x1C
#define	DA9055_REG_VSYS_MON		0x1D
#define	DA9055_REG_ADC_RES_L		0x1E
#define	DA9055_REG_ADC_RES_H		0x1F
#define	DA9055_REG_VSYS_RES		0x20
#define	DA9055_REG_ADCIN1_RES		0x21
#define	DA9055_REG_ADCIN2_RES		0x22
#define	DA9055_REG_ADCIN3_RES		0x23

/* Sequencer Control Registers */
#define	DA9055_REG_EN_32K		0x35

/* Regulator Setting Registers */
#define	DA9055_REG_BUCK_LIM		0x37
#define	DA9055_REG_BCORE_MODE		0x38
#define	DA9055_REG_VBCORE_A		0x39
#define	DA9055_REG_VBMEM_A		0x3A
#define	DA9055_REG_VLDO1_A		0x3B
#define	DA9055_REG_VLDO2_A		0x3C
#define	DA9055_REG_VLDO3_A		0x3D
#define	DA9055_REG_VLDO4_A		0x3E
#define	DA9055_REG_VLDO5_A		0x3F
#define	DA9055_REG_VLDO6_A		0x40
#define	DA9055_REG_VBCORE_B		0x41
#define	DA9055_REG_VBMEM_B		0x42
#define	DA9055_REG_VLDO1_B		0x43
#define	DA9055_REG_VLDO2_B		0x44
#define	DA9055_REG_VLDO3_B		0x45
#define	DA9055_REG_VLDO4_B		0x46
#define	DA9055_REG_VLDO5_B		0x47
#define	DA9055_REG_VLDO6_B		0x48

/* GP-ADC Threshold Registers */
#define	DA9055_REG_AUTO1_HIGH		0x49
#define	DA9055_REG_AUTO1_LOW		0x4A
#define	DA9055_REG_AUTO2_HIGH		0x4B
#define	DA9055_REG_AUTO2_LOW		0x4C
#define	DA9055_REG_AUTO3_HIGH		0x4D
#define	DA9055_REG_AUTO3_LOW		0x4E

/* OTP */
#define	DA9055_REG_OPT_COUNT		0x50
#define	DA9055_REG_OPT_ADDR		0x51
#define	DA9055_REG_OPT_DATA		0x52

/* RTC Calendar and Alarm Registers */
#define	DA9055_REG_COUNT_S		0x53

Annotation

Implementation Notes