Files
android/drivers/misc/mediatek/lpm/modules/include/mt6833/mt6833_cond.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

46 lines
1019 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MT6833_COND_H__
#define __MT6833_COND_H__
/* Definition about SPM_COND_CHECK_BLOCKED
* bit [00 ~ 15]: cg blocking index
* bit [16 ~ 29]: pll blocking index
* bit [30] : pll blocking information
* bit [31] : idle condition check fail
*/
#define SPM_COND_BLOCKED_CG_IDX (0)
#define SPM_COND_BLOCKED_PLL_IDX (16)
#define SPM_COND_BLOCKED_PLL (1<<30L)
#define SPM_COND_CHECK_FAIL (1<<31L)
enum PLAT_SPM_COND {
PLAT_SPM_COND_MTCMOS_0 = 0,
PLAT_SPM_COND_CG_INFRA_0,
PLAT_SPM_COND_CG_INFRA_1,
PLAT_SPM_COND_CG_INFRA_2,
PLAT_SPM_COND_CG_INFRA_3,
PLAT_SPM_COND_CG_INFRA_4,
PLAT_SPM_COND_CG_INFRA_5,
PLAT_SPM_COND_CG_MMSYS_0,
PLAT_SPM_COND_CG_MMSYS_1,
PLAT_SPM_COND_CG_MMSYS_2,
PLAT_SPM_COND_CG_MMSYS_3,
PLAT_SPM_COND_MAX,
};
enum PLAT_SPM_PLL_COND {
PLAT_SPM_COND_UNIVPLL = 0,
PLAT_SPM_COND_MFGPLL,
PLAT_SPM_COND_MSDCPLL,
PLAT_SPM_COND_TVPLL,
PLAT_SPM_COND_MMPLL,
PLAT_SPM_COND_PLL_MAX,
};
#endif