unplugged-kernel/drivers/media/platform/mtk-vcodec/mt6779/mtk_vcodec_pm.h

57 lines
1.3 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _MTK_VCODEC_PM_H_
#define _MTK_VCODEC_PM_H_
#define MTK_PLATFORM_STR "platform:mt6779"
/**
* struct mtk_vcodec_pm - Power management data structure
*/
struct mtk_vcodec_pm {
struct clk *vdec_bus_clk_src;
struct clk *vencpll;
struct clk *vcodecpll;
struct clk *univpll_d2;
struct clk *clk_cci400_sel;
struct clk *vdecpll;
struct clk *vdec_sel;
struct clk *vencpll_d2;
struct clk *venc_sel;
struct clk *univpll1_d2;
struct clk *venc_lt_sel;
struct clk *img_resz;
struct device *larbvdec;
struct device *larbvenc;
struct device *larbvenclt;
struct device *dev;
struct device_node *chip_node;
struct mtk_vcodec_dev *mtkdev;
struct clk *clk_MT_CG_VDEC; /* VDEC */
struct clk *clk_MT_CG_VENC; /* VENC */
struct clk *clk_MT_SCP_SYS_VDE; /* SCP_SYS_VDE */
struct clk *clk_MT_SCP_SYS_VEN; /* SCP_SYS_VEN */
struct clk *clk_MT_SCP_SYS_DIS; /* SCP_SYS_DIS */
};
enum mtk_dec_dtsi_reg_idx {
VDEC_SYS,
VDEC_VLD,
VDEC_MISC,
NUM_MAX_VDEC_REG_BASE,
};
enum mtk_enc_dtsi_reg_idx {
VENC_LT_SYS,
VENC_SYS,
NUM_MAX_VENC_REG_BASE
};
#endif /* _MTK_VCODEC_PM_H_ */