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)
61 lines
2.0 KiB
C
61 lines
2.0 KiB
C
/*
|
|
* Copyright (C) 2016 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 the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _VPU_DVFS_H_
|
|
#define _VPU_DVFS_H_
|
|
|
|
|
|
/* ++++++++++++++++++++++++++++++++++*/
|
|
/* |opp_index | vpu frequency | power */
|
|
/* ------------------------------------------*/
|
|
/* | 0 | 525 MHz | 336 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 1 | 450 MHz | 250 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 2 | 416 MHz | 221 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 3 | 364 MHz | 208 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 4 | 312 MHz | 140 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 5 | 273 MHz | 120 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 6 | 208 MHz | 114 mA */
|
|
/* ------------------------------------------*/
|
|
/* | 7 | 182 MHz | 84 mA */
|
|
/* ++++++++++++++++++++++++++++++++++*/
|
|
|
|
enum VPU_OPP_INDEX {
|
|
VPU_OPP_0 = 0,
|
|
VPU_OPP_1 = 1,
|
|
VPU_OPP_2 = 2,
|
|
VPU_OPP_3 = 3,
|
|
VPU_OPP_4 = 4,
|
|
VPU_OPP_5 = 5,
|
|
VPU_OPP_6 = 6,
|
|
VPU_OPP_7 = 7,
|
|
VPU_OPP_NUM
|
|
};
|
|
|
|
struct VPU_OPP_INFO {
|
|
enum VPU_OPP_INDEX opp_index;
|
|
int power; /*mW*/
|
|
};
|
|
|
|
extern struct VPU_OPP_INFO vpu_power_table[VPU_OPP_NUM];
|
|
extern int32_t vpu_thermal_en_throttle_cb(uint8_t vcore_opp,
|
|
uint8_t vpu_opp);
|
|
extern int32_t vpu_thermal_dis_throttle_cb(void);
|
|
|
|
#endif
|