Files
android/sound/soc/codecs/aw87xxx/aw87549.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

50 lines
1.8 KiB
C

/*
* @Descripttion: Header file of AW87549
* @version: 0.0.2
* @Author: yulei
* @Date: 2020-04-13 09:39:32
* @LastEditors: Please set LastEditors
* @LastEditTime: 2020-04-21 11:44:33
*/
#ifndef __AW87549_H__
#define __AW87549_H__
#define AW87549_REG_CHIPID 0x00
#define AW87549_REG_SYSCTRL 0x01
#define AW87549_REG_BATSAFE 0x02
#define AW87549_REG_BSTOVR 0x03
#define AW87549_REG_BSTVPR 0x04
#define AW87549_REG_PAGR 0x05
#define AW87549_REG_PAGC3OPR 0x06
#define AW87549_REG_PAGC3PR 0x07
#define AW87549_REG_PAGC2OPR 0x08
#define AW87549_REG_PAGC2PR 0x09
#define AW87549_REG_PAGC1PR 0x0A
#define AW87549_CHIPID 0x5A
/********************************************
* Register Access
*******************************************/
#define AW87549_REG_MAX 16
#define AW87549_REG_NONE_ACCESS 0
#define AW87549_REG_RD_ACCESS (1 << 0)
#define AW87549_REG_WR_ACCESS (1 << 1)
const unsigned char AW87549_reg_access[AW87549_REG_MAX] = {
[AW87549_REG_CHIPID] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_SYSCTRL] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_BATSAFE] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_BSTOVR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_BSTVPR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGC3OPR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGC3PR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGC2OPR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGC2PR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
[AW87549_REG_PAGC1PR] = AW87549_REG_RD_ACCESS | AW87549_REG_WR_ACCESS,
};
#endif