6db4831e98
Android 14
67 lines
1.9 KiB
C
67 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
|
|
#ifndef __CCCI_COMMON_CINFIG_H__
|
|
#define __CCCI_COMMON_CINFIG_H__
|
|
|
|
|
|
/* buffer management customization */
|
|
#define CCCI_MTU (3584-128)
|
|
#define CCCI_NET_MTU (1500)
|
|
#define SKB_POOL_SIZE_4K (256)
|
|
#define SKB_POOL_SIZE_1_5K (256)
|
|
#define SKB_POOL_SIZE_16 (64)
|
|
#define BM_POOL_SIZE \
|
|
(SKB_POOL_SIZE_4K+SKB_POOL_SIZE_1_5K+SKB_POOL_SIZE_16)
|
|
/*reload pool if pool size dropped below 1/RELOAD_TH */
|
|
#define RELOAD_TH (3)
|
|
|
|
/* EE dump cunstomization */
|
|
#define CCCI_EE_SIZE_CCIF_SRAM (72) /* SRAM size we dump into smem */
|
|
/* CCIF dump offset in MD SS debug region */
|
|
#define CCCI_EE_OFFSET_CCIF_SRAM (1024 - CCCI_EE_SIZE_CCIF_SRAM)
|
|
#define CCCI_EE_SMEM_TOTAL_SIZE (64*1024)
|
|
#define CCCI_SMEM_SIZE_RUNTIME_AP (0x800) /* AP runtime data size */
|
|
#define CCCI_SMEM_SIZE_RUNTIME_MD (0x800) /* MD runtime data size */
|
|
#define CCCI_SMEM_OFFSET_SEQERR (0x34) /* in MD CCCI debug region */
|
|
#define CCCI_SMEM_SIZE_DBM (160)
|
|
#define CCCI_SMEM_SIZE_DBM_GUARD (8)
|
|
|
|
#define IPC_L4C_MSG_ID_LEN (0x40)
|
|
|
|
/* feature option, always try using platform info first! */
|
|
#ifdef CONFIG_MTK_TINYSYS_SCP_SUPPORT
|
|
#define FEATURE_SCP_CCCI_SUPPORT
|
|
#endif
|
|
/*#define ENABLE_EMI_PROTECTION*/
|
|
#define ENABLE_32K_CLK_LESS
|
|
|
|
#define HW_CHECK_SUM_ENABLE
|
|
#define HW_FRG_FEATURE_ENABLE
|
|
#ifdef HW_FRG_FEATURE_ENABLE
|
|
/* #define FRG_FEATURE_TEST */
|
|
#ifdef FRG_FEATURE_TEST
|
|
/* 1024 + 2432 = 3456 */
|
|
#define DPMAIF_PKT_SIZE (128*8) /* == 1024 */
|
|
#define DPMAIF_FRG_SIZE (128*19) /* 2432 */
|
|
#else
|
|
/* 1664 + 1920 = 3584 (> 3* 1024)+8 */
|
|
#define DPMAIF_PKT_SIZE (128*13) /* == 1664 */
|
|
#define DPMAIF_FRG_SIZE (128*15) /* 1920 */
|
|
#endif
|
|
#else
|
|
#define DPMAIF_PKT_SIZE (128*28) /* 3584 ==SKB_4K */
|
|
#define DPMAIF_FRG_SIZE (128) /* =_=, no used */
|
|
#endif
|
|
|
|
/*#define CCCI_LOG_LEVEL 1*/
|
|
|
|
/*#define DPMAIF_DEBUG_LOG*/
|
|
#define DEBUG_FOR_CCB
|
|
|
|
|
|
#endif
|