1
0
mirror of https://github.com/physwizz/a155-U-u1.git synced 2025-09-26 19:04:54 +00:00
Files
a155-U-u1/kernel-5.10/drivers/misc/mediatek/vcp/rv/vcp_feature_define.h
physwizz 99537be4e2 first
2024-03-11 06:53:12 +11:00

60 lines
1.4 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 MediaTek Inc.
*/
#ifndef __VCP_FEATURE_DEFINE_H__
#define __VCP_FEATURE_DEFINE_H__
#include "vcp.h"
/* vcp platform configs*/
#define VCP_BOOT_TIME_OUT_MONITOR (1)
#define VCP_RESERVED_MEM (1)
#define VCP_LOGGER_ENABLE (1)
#define VCP_VOW_LOW_POWER_MODE (1)
#define VCP_DEBUG_NODE_ENABLE (0)
#define VCP_IOMMU_ENABLE (1)
/* vcp rescovery feature option*/
#define VCP_RECOVERY_SUPPORT (1)
/* vcp recovery timeout value (ms)*/
#define VCP_SYS_RESET_TIMEOUT 1000
#define VCP_PARAMS_TO_VCP_SUPPORT
/* vcp aed definition*/
#define VCP_AED_STR_LEN (512)
/* vcp sub feature register API marco*/
#define VCP_REGISTER_SUB_SENSOR (1)
/* emi mpu define*/
#define ENABLE_VCP_EMI_PROTECTION (0)
#define MPU_REGION_ID_VCP_SMEM 7
#define MPU_DOMAIN_D0 0
#define MPU_DOMAIN_D3 3
#define VCPSYS_CORE0 0
#define VCPSYS_CORE1 1
struct vcp_feature_tb {
uint32_t feature;
uint32_t freq;
uint32_t enable;
uint32_t sys_id; /* run at which subsys? */
};
struct vcp_sub_feature_tb {
uint32_t feature;
uint32_t freq;
uint32_t enable;
};
extern struct vcp_feature_tb feature_table[NUM_FEATURE_ID];
#endif