1/* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your 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, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18#ifndef __AUTOCONF_H__ 19#define __AUTOCONF_H__ 20 21#define AUTOCONF_TIMESTAMP "2021-04-03 13:57:17 UTC" 22 23/* 24 * General Setup 25 */ 26#define CONFIG_HI3516CV500 1 27#define CONFIG_HI_CHIP_TYPE 0x3516C500 28#define CONFIG_HI_ARCH "hi3516cv500" 29#define CONFIG_HI_SUBARCH "hi3516cv500" 30#define CONFIG_HI_SUBCHIP_TYPE 0x3516C500 31#define CONFIG_HI_SUBARCH "hi3516cv500" 32#define CONFIG_HI_SUBCHIP_TYPE 0x3516C500 33#define CONFIG_SUBCHIP_HI3516CV500 1 34#define CONFIG_HI_SUBARCH "hi3516cv500" 35#define CONFIG_HI_SUBCHIP_TYPE 0x3516C500 36#define CONFIG_SMP 1 37#define CONFIG_ARM_ARCH_TYPE "smp" 38#define CONFIG_A7 1 39#define CONFIG_CPU_TYPE "a7" 40#define CONFIG_VERSION_ASIC 1 41#define CONFIG_HI_FPGA "n" 42#define CONFIG_OHOS_OS 1 43#define CONFIG_OS_TYPE "OHOS" 44#define CONFIG_KERNEL_VERSION "OHOS" 45#define CONFIG_KERNEL_LLVM 1 46#define CONFIG_HI_CROSS "llvm-" 47#define CONFIG_LIBC_TYPE "musl_llvm" 48#define CONFIG_KERNEL_BIT "KERNEL_BIT_32" 49#define CONFIG_USER_LLVM 1 50#define CONFIG_HI_CROSS_LIB "llvm-" 51#define CONFIG_USER_BIT "USER_BIT_32" 52#define CONFIG_RELEASE_TYPE_RELEASE 1 53#define CONFIG_HI_RLS_MODE "HI_RELEASE" 54#define CONFIG_CUSTOMER_VERSION_COMMON 1 55#define CONFIG_CUSTOMER_VERSION "COMMON" 56#define CONFIG_VERSION_NUMBER "1.0.0.1.10" 57 58/* 59 * Media Modules Setup 60 */ 61 62/* 63 * media base config 64 */ 65 66/* 67 * media sys config 68 */ 69#define CONFIG_HI_SYS_SUPPORT 1 70#define CONFIG_HI_SYS_SCALE_COEF_SUPPORT 1 71 72/* 73 * media vi config 74 */ 75#define CONFIG_HI_VI_SUPPORT 1 76#define CONFIG_HI_VI_BT656 1 77#define CONFIG_HI_VI_MIPI 1 78#define CONFIG_HI_VI_LDCV1_SUPPORT 1 79#define CONFIG_HI_VI_LDCV2_SUPPORT 1 80#define CONFIG_HI_VI_SENDYUV_SUPPORT 1 81#define CONFIG_HI_VI_3DNRX_SUPPORT 1 82#define CONFIG_HI_VI_USERPIC_SUPPORT 1 83#define CONFIG_HI_VI_COVEREX_OVERLAYEX_SUPPORT 1 84#define CONFIG_HI_VI_LUMA_SUPPORT 1 85#define CONFIG_HI_VI_FPN_SUPPORT 1 86#define CONFIG_HI_VI_EXTCHN_SUPPORT 1 87#define CONFIG_HI_SNAP_SUPPORT 1 88 89/* 90 * media isp config 91 */ 92#define CONFIG_HI_ISP_SUPPORT 1 93#define CONFIG_HI_ISP_AF_SUPPORT 1 94#define CONFIG_HI_ISP_CR_SUPPORT 1 95#define CONFIG_HI_ISP_PREGAMMA_SUPPORT 1 96#define CONFIG_HI_ISP_GCAC_SUPPORT 1 97#define CONFIG_HI_ISP_CA_SUPPORT 1 98#define CONFIG_HI_ISP_EDGEMARK_SUPPORT 1 99#define CONFIG_HI_ISP_HLC_SUPPORT 1 100#define CONFIG_HI_ISP_SPECAWB_SUPPORT 1 101#define CONFIG_HI_ISP_DPC_STATIC_TABLE_SUPPORT 1 102 103/* 104 * media dis config 105 */ 106#define CONFIG_HI_DIS_SUPPORT 1 107 108/* 109 * media vpss config 110 */ 111#define CONFIG_HI_VPSS_SUPPORT 1 112#define CONFIG_HI_VPSS_3DNR_SUPPORT 1 113#define CONFIG_HI_VPSS_LUMA_STAT_SUPPORT 1 114#define CONFIG_HI_VPSS_COVER_SUPPORT 1 115#define CONFIG_HI_VPSS_MOSAIC_SUPPORT 1 116#define CONFIG_HI_VPSS_BUF_SHARE_SUPPORT 1 117#define CONFIG_HI_VPSS_SPREAD_SUPPORT 1 118 119/* 120 * media avs config 121 */ 122 123/* 124 * media gdc config 125 */ 126#define CONFIG_HI_GDC_SUPPORT 1 127#define CONFIG_HI_GDC_LOWDELAY_SUPPORT 1 128#define CONFIG_HI_GDC_FISHEYE_SUPPORT 1 129#define CONFIG_HI_GDC_NNIE_SHARE_RAM 1 130 131/* 132 * media vgs config 133 */ 134#define CONFIG_HI_VGS_SUPPORT 1 135#define CONFIG_HI_VGS_LUMA_STAT_SUPPORT 1 136 137/* 138 * media chnl config 139 */ 140#define CONFIG_HI_CHNL_SUPPORT 1 141 142/* 143 * media venc config 144 */ 145#define CONFIG_HI_VENC_SUPPORT 1 146#define CONFIG_HI_H265E_SUPPORT 1 147#define CONFIG_HI_H265E_USERDATA_SUPPORT 1 148#define CONFIG_HI_H265E_INTRA_REFRESH_SUPPORT 1 149#define CONFIG_HI_H264E_SUPPORT 1 150#define CONFIG_HI_H264E_SVC_SUPPORT 1 151#define CONFIG_HI_H264E_USERDATA_SUPPORT 1 152#define CONFIG_HI_H264E_INTRA_REFRESH_SUPPORT 1 153#define CONFIG_HI_JPEGE_SUPPORT 1 154#define CONFIG_HI_MJPEGE_SUPPORT 1 155#define CONFIG_HI_JPEGE_DCF_SUPPORT 1 156#define CONFIG_HI_JPEGE_USERDATA_SUPPORT 1 157#define CONFIG_HI_VENC_LOWDELAY_SUPPORT 1 158#define CONFIG_HI_VENC_VPSSAUTO_SUPPORT 1 159#define CONFIG_HI_VENC_FRAMEBUF_RECYCLE_SUPPORT 1 160#define CONFIG_HI_VENC_MPF_VGS_SUPPORT 1 161#define CONFIG_HI_VENC_VGS_SUPPORT 1 162#define CONFIG_HI_VENC_SMARTP_SUPPORT 1 163#define CONFIG_HI_VENC_DUALP_SUPPORT 1 164#define CONFIG_HI_VENC_RCNREF_SHARE_SUPPORT 1 165#define CONFIG_HI_VENC_DEBREATH_SUPPORT 1 166#define CONFIG_HI_VENC_SKIPREF_SUPPORT 1 167#define CONFIG_HI_VENC_SCENE0_SUPPORT 1 168#define CONFIG_HI_VENC_SCENE1_SUPPORT 1 169#define CONFIG_HI_VENC_SCENE2_SUPPORT 1 170#define CONFIG_HI_RC_AVBR_SUPPORT 1 171#define CONFIG_HI_RC_QPMAP_SUPPORT 1 172#define CONFIG_HI_RC_QVBR_SUPPORT 1 173#define CONFIG_HI_RC_CVBR_SUPPORT 1 174 175/* 176 * media vdec config 177 */ 178#define CONFIG_HI_VDEC_SUPPORT 1 179#define CONFIG_HI_H265D_SUPPORT 1 180#define CONFIG_HI_H264D_SUPPORT 1 181#define CONFIG_VDEC_IP "VDEC_IP_VEDU" 182#define CONFIG_HI_JPEGD_SUPPORT 1 183#define CONFIG_HI_JPEGD_PROGRESSIVE 1 184#define CONFIG_VDEC_USERDATA_SUPPORT 1 185 186/* 187 * media vo config 188 */ 189#define CONFIG_HI_VO_SUPPORT 1 190#define CONFIG_HI_VO_FB_SEPARATE 1 191#define CONFIG_HI_VO_COVER_OSD_SUPPORT 1 192#define CONFIG_HI_VO_VGS 1 193#define CONFIG_HI_VO_GRAPH 1 194 195/* 196 * media region config 197 */ 198#define CONFIG_HI_REGION_SUPPORT 1 199#define CONFIG_HI_RGN_VGS_QUICKCOPY_SUPPORT 1 200 201/* 202 * media audio config 203 */ 204#define CONFIG_HI_AUDIO_SUPPORT 1 205#define CONFIG_HI_ACODEC_SUPPORT 1 206#define CONFIG_HI_ACODEC_VERSION "V660" 207#define CONFIG_HI_ACODEC_MAX_GAIN 56 208#define CONFIG_HI_ACODEC_MIN_GAIN 0 209#define CONFIG_HI_ACODEC_GAIN_STEP 3 210#define CONFIG_HI_ACODEC_FAST_POWER_SUPPORT 1 211#define CONFIG_HI_DOWNVQE_SUPPORT 1 212#define CONFIG_HI_TALKVQE_SUPPORT 1 213#define CONFIG_HI_RECORDVQE_SUPPORT 1 214#define CONFIG_HI_AUDIO_STATIC_REGISTER_SUPPORT 1 215#define CONFIG_HI_AUDIO_H7_NEW_VOICE_SUPPORT 1 216#define CONFIG_HI_AUDIO_H7_NEW_VQE_SUPPORT 1 217 218/* 219 * media hdr config 220 */ 221 222/* 223 * media mcf config 224 */ 225 226/* 227 * Device Driver Setup 228 */ 229 230/* 231 * drv config 232 */ 233#define CONFIG_DRV 1 234#define CONFIG_EXTDRV 1 235#define CONFIG_INTERDRV 1 236#define CONFIG_CIPHER 1 237#define CONFIG_HIUSER 1 238#define CONFIG_MIPI_TX 1 239#define CONFIG_MIPI_RX 1 240#define CONFIG_HI_IR 1 241#define CONFIG_HI_WDG 1 242#define CONFIG_HI_SYSCFG 1 243#define CONFIG_HI_LSADC 1 244 245/* 246 * Component Setup 247 */ 248 249/* 250 * Component hdmi Config 251 */ 252#define CONFIG_HI_HDMI_SUPPORT 1 253 254/* 255 * Component hifb Config 256 */ 257#define CONFIG_HI_HIFB_SUPPORT 1 258 259/* 260 * Component svp Config 261 */ 262#define CONFIG_HI_SVP_SUPPORT 1 263#define CONFIG_HI_SVP_CNN 1 264#define CONFIG_HI_SVP_IVE 1 265#define CONFIG_HI_SVP_IVE_CSC 1 266#define CONFIG_HI_SVP_IVE_FILTER_AND_CSC 1 267#define CONFIG_HI_SVP_IVE_NCC 1 268#define CONFIG_HI_SVP_IVE_LBP 1 269#define CONFIG_HI_SVP_IVE_NORM_GRAD 1 270#define CONFIG_HI_SVP_IVE_ST_CANDI_CORNER 1 271#define CONFIG_HI_SVP_IVE_RESIZE 1 272#define CONFIG_HI_SVP_IVE_PERSP_TRANS 1 273#define CONFIG_HI_SVP_IVE_KCF 1 274#define CONFIG_HI_SVP_IVE_HOG 1 275#define CONFIG_HI_SVP_MD 1 276 277/* 278 * Component photo Config 279 */ 280 281/* 282 * Component tde Config 283 */ 284#define CONFIG_HI_TDE_SUPPORT 1 285 286/* 287 * Component pciv Config 288 */ 289 290/* 291 * Component avs lut Config 292 */ 293 294/* 295 * Component pos_query Config 296 */ 297 298/* 299 * Component tzasc Config 300 */ 301 302/* 303 * Component motionfusion config 304 */ 305 306/* 307 * Component pm Config 308 */ 309 310/* 311 * Component gpu Config 312 */ 313 314/* 315 * HISYSLINK Setup 316 */ 317 318/* 319 * hisyslink config 320 */ 321 322/* 323 * Debug Config 324 */ 325#define CONFIG_HI_GDB_NO 1 326#define CONFIG_HI_GDB "n" 327#define CONFIG_HI_PROC_SHOW_SUPPORT 1 328#define CONFIG_HI_LOG_TRACE_SUPPORT 1 329#define CONFIG_HI_LOG_TRACE_ALL 1 330#define CONFIG_HI_LOG_TRACE_LEVEL 7 331 332/* 333 * Test Config 334 */ 335 336#endif /* __AUTOCONF_H__ */ 337 338