mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

- VCORE DVFS is the feature to change VCORE/DDR Freq for power saving - When there are no requests for using Vcore/DRAM, Vcore DVFS will - lower the voltage and frequency of Vcore/DRAM to achieve power saving. Signed-off-by: Kunlong Wang <kunlong.wang@mediatek.com> Change-Id: I1126311e8b3943cc54fb13e15973b9e1b74c129e
29 lines
506 B
C
29 lines
506 B
C
/*
|
|
* Copyright (c) 2025, MediaTek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef DRAMC_H
|
|
#define DRAMC_H
|
|
|
|
#define DRAM_MAX_FREQ 16
|
|
#define DRAM_MAX_MR_CNT 10
|
|
#define DRAM_MAX_RK 2
|
|
|
|
int init_dramc_info(void *tag_entry);
|
|
int get_dram_step_freq(unsigned int step);
|
|
unsigned int get_dram_type(void);
|
|
|
|
enum dram_type {
|
|
TYPE_DDR1 = 1,
|
|
TYPE_LPDDR2,
|
|
TYPE_LPDDR3,
|
|
TYPE_PCDDR3,
|
|
TYPE_LPDDR4,
|
|
TYPE_LPDDR4X,
|
|
TYPE_LPDDR4P,
|
|
TYPE_LPDDR5,
|
|
TYPE_LPDDR5X,
|
|
};
|
|
#endif /* DRAMC_H */
|