drivers/mfd/wm5110-tables.c

Source file repositories/reference/linux-study-clean/drivers/mfd/wm5110-tables.c

File Facts

System
Linux kernel
Corpus path
drivers/mfd/wm5110-tables.c
Extension
.c
Size
137858 bytes
Lines
3226
Domain
Driver Families
Bucket
drivers/mfd
Inferred role
Driver Families: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0-only
/*
 * wm5110-tables.c  --  WM5110 data tables
 *
 * Copyright 2012 Wolfson Microelectronics plc
 *
 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
 */

#include <linux/module.h>

#include <linux/mfd/arizona/core.h>
#include <linux/mfd/arizona/registers.h>
#include <linux/device.h>

#include "arizona.h"

#define WM5110_NUM_AOD_ISR 2
#define WM5110_NUM_ISR 5

static const struct reg_sequence wm5110_reva_patch[] = {
	{ 0x80, 0x3 },
	{ 0x44, 0x20 },
	{ 0x45, 0x40 },
	{ 0x46, 0x60 },
	{ 0x47, 0x80 },
	{ 0x48, 0xa0 },
	{ 0x51, 0x13 },
	{ 0x52, 0x33 },
	{ 0x53, 0x53 },
	{ 0x54, 0x73 },
	{ 0x55, 0x75 },
	{ 0x56, 0xb3 },
	{ 0x2ef, 0x124 },
	{ 0x2ef, 0x124 },
	{ 0x2f0, 0x124 },
	{ 0x2f0, 0x124 },
	{ 0x2f1, 0x124 },
	{ 0x2f1, 0x124 },
	{ 0x2f2, 0x124 },
	{ 0x2f2, 0x124 },
	{ 0x2f3, 0x124 },
	{ 0x2f3, 0x124 },
	{ 0x2f4, 0x124 },
	{ 0x2f4, 0x124 },
	{ 0x2eb, 0x60 },
	{ 0x2ec, 0x60 },
	{ 0x2ed, 0x60 },
	{ 0xc30, 0x3e3e },
	{ 0xc30, 0x3e3e },
	{ 0xc31, 0x3e },
	{ 0xc32, 0x3e3e },
	{ 0xc32, 0x3e3e },
	{ 0xc33, 0x3e3e },
	{ 0xc33, 0x3e3e },
	{ 0xc34, 0x3e3e },
	{ 0xc34, 0x3e3e },
	{ 0xc35, 0x3e3e },
	{ 0xc35, 0x3e3e },
	{ 0xc36, 0x3e3e },
	{ 0xc36, 0x3e3e },
	{ 0xc37, 0x3e3e },
	{ 0xc37, 0x3e3e },
	{ 0xc38, 0x3e3e },
	{ 0xc38, 0x3e3e },
	{ 0xc30, 0x3e3e },
	{ 0xc30, 0x3e3e },
	{ 0xc39, 0x3e3e },
	{ 0xc39, 0x3e3e },
	{ 0xc3a, 0x3e3e },
	{ 0xc3a, 0x3e3e },
	{ 0xc3b, 0x3e3e },
	{ 0xc3b, 0x3e3e },
	{ 0xc3c, 0x3e },
	{ 0x201, 0x18a5 },
	{ 0x201, 0x18a5 },
	{ 0x201, 0x18a5 },
	{ 0x202, 0x4100 },
	{ 0x460, 0xc00 },
	{ 0x461, 0x8000 },
	{ 0x462, 0xc01 },
	{ 0x463, 0x50f0 },
	{ 0x464, 0xc01 },
	{ 0x465, 0x4820 },
	{ 0x466, 0xc01 },
	{ 0x466, 0xc01 },
	{ 0x467, 0x4040 },
	{ 0x468, 0xc01 },
	{ 0x468, 0xc01 },
	{ 0x469, 0x3940 },

Annotation

Implementation Notes