include/linux/mfd/atc260x/atc2603c.h

Source file repositories/reference/linux-study-clean/include/linux/mfd/atc260x/atc2603c.h

File Facts

System
Linux kernel
Corpus path
include/linux/mfd/atc260x/atc2603c.h
Extension
.h
Size
10603 bytes
Lines
282
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 __LINUX_MFD_ATC260X_ATC2603C_H
#define __LINUX_MFD_ATC260X_ATC2603C_H

enum atc2603c_irq_def {
	ATC2603C_IRQ_AUDIO = 0,
	ATC2603C_IRQ_OV,
	ATC2603C_IRQ_OC,
	ATC2603C_IRQ_OT,
	ATC2603C_IRQ_UV,
	ATC2603C_IRQ_ALARM,
	ATC2603C_IRQ_ONOFF,
	ATC2603C_IRQ_SGPIO,
	ATC2603C_IRQ_IR,
	ATC2603C_IRQ_REMCON,
	ATC2603C_IRQ_POWER_IN,
};

/* PMU Registers */
#define ATC2603C_PMU_SYS_CTL0			0x00
#define ATC2603C_PMU_SYS_CTL1			0x01
#define ATC2603C_PMU_SYS_CTL2			0x02
#define ATC2603C_PMU_SYS_CTL3			0x03
#define ATC2603C_PMU_SYS_CTL4			0x04
#define ATC2603C_PMU_SYS_CTL5			0x05
#define ATC2603C_PMU_SYS_CTL6			0x06
#define ATC2603C_PMU_SYS_CTL7			0x07
#define ATC2603C_PMU_SYS_CTL8			0x08
#define ATC2603C_PMU_SYS_CTL9			0x09
#define ATC2603C_PMU_BAT_CTL0			0x0A
#define ATC2603C_PMU_BAT_CTL1			0x0B
#define ATC2603C_PMU_VBUS_CTL0			0x0C
#define ATC2603C_PMU_VBUS_CTL1			0x0D
#define ATC2603C_PMU_WALL_CTL0			0x0E
#define ATC2603C_PMU_WALL_CTL1			0x0F
#define ATC2603C_PMU_SYS_PENDING		0x10
#define ATC2603C_PMU_DC1_CTL0			0x11
#define ATC2603C_PMU_DC1_CTL1			0x12 // Undocumented
#define ATC2603C_PMU_DC1_CTL2			0x13 // Undocumented
#define ATC2603C_PMU_DC2_CTL0			0x14
#define ATC2603C_PMU_DC2_CTL1			0x15 // Undocumented
#define ATC2603C_PMU_DC2_CTL2			0x16 // Undocumented
#define ATC2603C_PMU_DC3_CTL0			0x17
#define ATC2603C_PMU_DC3_CTL1			0x18 // Undocumented
#define ATC2603C_PMU_DC3_CTL2			0x19 // Undocumented
#define ATC2603C_PMU_DC4_CTL0			0x1A // Undocumented
#define ATC2603C_PMU_DC4_CTL1			0x1B // Undocumented
#define ATC2603C_PMU_DC5_CTL0			0x1C // Undocumented
#define ATC2603C_PMU_DC5_CTL1			0x1D // Undocumented
#define ATC2603C_PMU_LDO1_CTL			0x1E
#define ATC2603C_PMU_LDO2_CTL			0x1F
#define ATC2603C_PMU_LDO3_CTL			0x20
#define ATC2603C_PMU_LDO4_CTL			0x21 // Undocumented
#define ATC2603C_PMU_LDO5_CTL			0x22
#define ATC2603C_PMU_LDO6_CTL			0x23
#define ATC2603C_PMU_LDO7_CTL			0x24
#define ATC2603C_PMU_LDO8_CTL			0x25 // Undocumented
#define ATC2603C_PMU_LDO9_CTL			0x26 // Undocumented
#define ATC2603C_PMU_LDO10_CTL			0x27 // Undocumented
#define ATC2603C_PMU_LDO11_CTL			0x28
#define ATC2603C_PMU_SWITCH_CTL			0x29
#define ATC2603C_PMU_OV_CTL0			0x2A
#define ATC2603C_PMU_OV_CTL1			0x2B
#define ATC2603C_PMU_OV_STATUS			0x2C
#define ATC2603C_PMU_OV_EN			0x2D
#define ATC2603C_PMU_OV_INT_EN			0x2E
#define ATC2603C_PMU_OC_CTL			0x2F
#define ATC2603C_PMU_OC_STATUS			0x30
#define ATC2603C_PMU_OC_EN			0x31
#define ATC2603C_PMU_OC_INT_EN			0x32
#define ATC2603C_PMU_UV_CTL0			0x33
#define ATC2603C_PMU_UV_CTL1			0x34
#define ATC2603C_PMU_UV_STATUS			0x35
#define ATC2603C_PMU_UV_EN			0x36
#define ATC2603C_PMU_UV_INT_EN			0x37
#define ATC2603C_PMU_OT_CTL			0x38
#define ATC2603C_PMU_CHARGER_CTL0		0x39
#define ATC2603C_PMU_CHARGER_CTL1		0x3A
#define ATC2603C_PMU_CHARGER_CTL2		0x3B
#define ATC2603C_PMU_BAKCHARGER_CTL		0x3C // Undocumented
#define ATC2603C_PMU_APDS_CTL			0x3D
#define ATC2603C_PMU_AUXADC_CTL0		0x3E
#define ATC2603C_PMU_AUXADC_CTL1		0x3F
#define ATC2603C_PMU_BATVADC			0x40
#define ATC2603C_PMU_BATIADC			0x41
#define ATC2603C_PMU_WALLVADC			0x42
#define ATC2603C_PMU_WALLIADC			0x43
#define ATC2603C_PMU_VBUSVADC			0x44
#define ATC2603C_PMU_VBUSIADC			0x45
#define ATC2603C_PMU_SYSPWRADC			0x46
#define ATC2603C_PMU_REMCONADC			0x47

Annotation

Implementation Notes