1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * 17 */ 18 19 #ifndef __SYS_EXT_H__ 20 #define __SYS_EXT_H__ 21 22 #include "hi_type.h" 23 #include "hi_common_video.h" 24 #include "sys_drv.h" 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif 30 #endif /* end of #ifdef __cplusplus */ 31 32 typedef enum { 33 SYS_VO_PLL_POSTDIV2_SET, 34 SYS_VO_PLL_POSTDIV1_SET, 35 SYS_VO_PLL_FRAC_SET, 36 SYS_VO_PLL_REFDIV_SET, 37 SYS_VO_PLL_FBDIV_SET, 38 SYS_VO_PLL_POWER_CTRL, 39 SYS_VO_BUS_RESET_SEL, 40 SYS_VO_CFG_CLK_EN, 41 SYS_VO_APB_CLK_EN, 42 SYS_VO_BUS_CLK_EN, 43 SYS_VO_HD_CLKOUT_PHASIC_REVERSE_EN, 44 SYS_VO_OUT_DLY_TUNE, 45 SYS_VO_OUT_HD_DIV, 46 SYS_VO_HD0_DIV_MOD, 47 SYS_VO_HD_CLK_SEL, 48 SYS_VO_CORE_CLK_EN, 49 SYS_VO_DEV_CLK_EN, 50 SYS_VO_HD1_DIV_MOD, 51 SYS_VO_SD_CLK_DIV, 52 SYS_VO_SD_CLK_SEL, 53 SYS_VO_BT1120_CLK_EN, 54 SYS_VO_BT1120_CLK_SEL, 55 SYS_VO_DAC_CLK_PHASIC_REVERSE_EN, 56 SYS_VO_HD_DAC_SEL, 57 SYS_VO_DEV_DAC_EN, 58 SYS_VO_HDMI_SSC_VDP_DIV, 59 SYS_VO_HDMI_CLK_EN, 60 SYS_VO_HDMI_CLK_SEL, 61 62 SYS_BUTT, 63 } sys_func; 64 65 #define call_sys_drv_ioctrl(mpp_chn, func_id, io_args) \ 66 sys_drv_drv_ioctrl(mpp_chn, func_id, io_args); 67 68 #ifdef __cplusplus 69 #if __cplusplus 70 } 71 #endif 72 #endif /* end of #ifdef __cplusplus */ 73 74 #endif /* __SYS_EXT_H__ */ 75