kernel_samsung_a34x-permissive/drivers/misc/mediatek/freqhopping/mt6833/mtk_freqhopping.h

46 lines
1.1 KiB
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MT_FREQHOPPING_H__
#define __MT_FREQHOPPING_H__
enum FH_PLL_ID {
FH_PLL0 = 0, /*ARMPLL_LL */
FH_PLL1 = 1, /*ARMPLL_BL0 */
FH_PLL2 = 2, /*ARMPLL_BL1 */
FH_PLL3 = 3, /*ARMPLL_BL2 */
FH_PLL4 = 4, /*NPUPLL */
FH_PLL5 = 5, /*CCIPLL */
FH_PLL6 = 6, /*MFGPLL */
FH_PLL7 = 7, /*MEMPLL */
FH_PLL8 = 8, /*MPLL */
FH_PLL9 = 9, /*MMPLL */
FH_PLL10 = 10, /*MAINPLL */
FH_PLL11 = 11, /*MSDCPLL */
FH_PLL12 = 12, /*ADSPPLL */
FH_PLL13 = 13, /*APUPLL */
FH_PLL14 = 14, /*TVDPLL */
FH_PLL_NUM,
};
extern int mt_dfs_general_pll(unsigned int pll_id, unsigned int target_dds);
/* for build pass only */
struct freqhopping_ssc {
unsigned int idx_pattern;
unsigned int dt;
unsigned int df;
unsigned int upbnd;
unsigned int lowbnd;
unsigned int dds;
};
struct freqhopping_ioctl {
unsigned int pll_id;
struct freqhopping_ssc ssc_setting; /* used only when user-define */
int result;
};
#endif /* !__MT_FREQHOPPING_H__ */