6db4831e98
Android 14
35 lines
784 B
C
35 lines
784 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
#ifndef __DVFSRC_MET_H
|
|
#define __DVFSRC_MET_H
|
|
#include <dvfsrc-exp.h>
|
|
|
|
struct mtk_dvfsrc_met;
|
|
|
|
struct dvfsrc_met_config {
|
|
u32 ip_verion;
|
|
int (*dvfsrc_get_src_req_num)(void);
|
|
char **(*dvfsrc_get_src_req_name)(void);
|
|
unsigned int *(*dvfsrc_get_src_req)(struct mtk_dvfsrc_met *dvfs);
|
|
int (*dvfsrc_get_ddr_ratio)(struct mtk_dvfsrc_met *dvfs);
|
|
u32 (*get_current_level)(struct mtk_dvfsrc_met *dvfsrc);
|
|
};
|
|
|
|
struct dvfsrc_met_data {
|
|
const struct dvfsrc_met_config *met;
|
|
};
|
|
|
|
struct mtk_dvfsrc_met {
|
|
struct device *dev;
|
|
void __iomem *regs;
|
|
const struct dvfsrc_met_data *dvd;
|
|
};
|
|
|
|
extern const struct dvfsrc_met_config mt6779_met_config;
|
|
extern const struct dvfsrc_met_config mt6761_met_config;
|
|
#endif
|
|
|