Files
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

64 lines
2.4 KiB
C

/*
* Copyright (C)2019 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifndef __MTK_DVFSRC_SMC_REG_H
#define __MTK_DVFSRC_SMC_REG_H
/**************************************
* Define and Declare
**************************************/
/* SPM REGISTER*/
#if defined(CONFIG_MACH_MT6877)
#define POWERON_CONFIG_EN (0x0000)
#define SPM_SW_FLAG_0 (0x0600)
#define SPM_PC_STA (0x0194)
#define SPM_DVFS_LEVEL (0x038C)
#define SPM_DVS_DFS_LEVEL (0x0390)
#define SPM_DVFS_STA (0x0388)
#define SPM_DVFS_MISC (0x03A0)
#define SPM_DVFS_CMD0 (0x0310)
#define SPM_DVFS_CMD1 (0x0314)
#define SPM_DVFS_CMD2 (0x0318)
#define SPM_DVFS_CMD3 (0x031C)
#define SPM_DVFS_CMD4 (0x0320)
#define SPM_DVFS_CMD16 (0x0350)
#define SPM_DVFS_CMD17 (0x0354)
#define SPM_DVFS_CMD18 (0x0358)
#define SPM_DVFS_CMD19 (0x035C)
#define SPM_DVFS_CMD20 (0x0360)
#else
#define POWERON_CONFIG_EN (0x0000)
#define SPM_SW_FLAG_0 (0x0600)
#define SPM_PC_STA (0x0194)
#define SPM_DVFS_LEVEL (0x04A4)
#define SPM_DVS_DFS_LEVEL (0x04F8)
#define SPM_DVFS_STA (0x01F8)
#define SPM_DVFS_MISC (0x04AC)
#define SPM_DVFS_CMD0 (0x0710)
#define SPM_DVFS_CMD1 (0x0714)
#define SPM_DVFS_CMD2 (0x0718)
#define SPM_DVFS_CMD3 (0x071C)
#define SPM_DVFS_CMD4 (0x0720)
#define SPM_DVFS_CMD7 (0x072C)
#define SPM_DVFS_CMD8 (0x0730)
#define SPM_DVFS_CMD16 (0x0750)
#define SPM_DVFS_CMD17 (0x0754)
#define SPM_DVFS_CMD18 (0x0758)
#define SPM_DVFS_CMD19 (0x075C)
#define SPM_DVFS_CMD20 (0x0760)
#endif
#endif /* __MTK_DVFSRC_REG_V2_H */