6db4831e98
Android 14
56 lines
2 KiB
C
56 lines
2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
#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 */
|