// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2020 MediaTek Inc. */ #include #include static struct mtk_pm_qos_request ddr_opp_req; void secure_perf_init(void) { mtk_pm_qos_add_request(&ddr_opp_req, MTK_PM_QOS_DDR_OPP, MTK_PM_QOS_DDR_OPP_DEFAULT_VALUE); } void secure_perf_remove(void) { mtk_pm_qos_remove_request(&ddr_opp_req); } void secure_perf_raise(void) { /* Fix DDR to higher frequency (OPP 3) */ //pm_qos_update_request(&ddr_opp_req, 3); } void secure_perf_restore(void) { /* Reset DDR to default OPP */ //pm_qos_update_request(&ddr_opp_req, PM_QOS_DDR_OPP_DEFAULT_VALUE); }