1. update New Feature#945 to dev_ck_v2.1
2. update New Feature#1347 to dev_ck_v2.1 3. add new interface for ecs rfm1 and ape: spu_get_oam_handle_id for get oam handle_id by inst_id 4. Move Mem_init() from ape to ecs rfm1 5. TEST: 5.1 spu(case0)+arm(case0): pass 5.2 spu(case14)+arm(case20):pass 5.3 spu(case20)+arm(case20):pass 5.4 spu(case21)+arm(case21):pass 5.5 spu(case34)+arm(case5): pass 5.6 spu(case44)+arm(case5): pass
This commit is contained in:
parent
0bd1487ff0
commit
8c59de6c96
@ -224,6 +224,14 @@ extern void osp_timer_sync(int scsId); /* 使能任务定时点 */
|
|||||||
*/
|
*/
|
||||||
extern void osp_timer_unsync(int scsId);
|
extern void osp_timer_unsync(int scsId);
|
||||||
|
|
||||||
|
/*
|
||||||
|
函数名称:spu_get_oam_handle_id
|
||||||
|
函数入参:inst_id,小区编号(0/1)
|
||||||
|
函数功能:根据小区编号,返回对应的OAM队列的handle_id
|
||||||
|
*/
|
||||||
|
extern int32_t spu_get_oam_handle_id(uint8_t inst_id);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -80,6 +80,13 @@ int32_t osp_send_msg(uint32_t msg_addr,
|
|||||||
*/
|
*/
|
||||||
void ecs_hw_que_irq_callback(ECS_HWQUE_IRQ_FUNC func);
|
void ecs_hw_que_irq_callback(ECS_HWQUE_IRQ_FUNC func);
|
||||||
|
|
||||||
|
/*
|
||||||
|
函数名称:spu_get_oam_handle_id
|
||||||
|
函数入参:inst_id,小区编号(0/1)
|
||||||
|
函数功能:根据小区编号,返回对应的OAM队列的handle_id
|
||||||
|
*/
|
||||||
|
int32_t spu_get_oam_handle_id(uint8_t inst_id);
|
||||||
|
|
||||||
/************************************************************************************/
|
/************************************************************************************/
|
||||||
/* 其他相关接口 */
|
/* 其他相关接口 */
|
||||||
/************************************************************************************/
|
/************************************************************************************/
|
||||||
|
@ -19,7 +19,7 @@ osp_msg_tick_info st_tick_info;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OSP_MSG_DBG_ENABLE
|
#ifdef OSP_MSG_DBG_ENABLE
|
||||||
osp_msg_dbg_info_t gst_osp_msg_dbg_info[TASK_MAX];
|
osp_msg_dbg_info_t gst_osp_msg_dbg_info[TASK_ID_MAX];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int g_hq_vector = -1;
|
int g_hq_vector = -1;
|
||||||
|
@ -42,7 +42,7 @@ void osp_task_init(void)
|
|||||||
g_taskid_num = 0;
|
g_taskid_num = 0;
|
||||||
|
|
||||||
#ifdef OSP_TASK_DBG_ENABLE
|
#ifdef OSP_TASK_DBG_ENABLE
|
||||||
memset(&gst_osp_task_dbg_info, 0, sizeof(osp_task_dbg_info_t)*TASK_MAX);
|
memset(&gst_osp_task_dbg_info, 0, sizeof(osp_task_dbg_info_t)*TASK_ID_MAX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
spu_insert_cmd_ext("i_ape", (OSP_FUNCPTR)osp_show_task_info, "osp show task info", 0);
|
spu_insert_cmd_ext("i_ape", (OSP_FUNCPTR)osp_show_task_info, "osp show task info", 0);
|
||||||
|
@ -23,9 +23,6 @@
|
|||||||
#include "pet_sm_mgt.h"
|
#include "pet_sm_mgt.h"
|
||||||
#include "osp_init.h"
|
#include "osp_init.h"
|
||||||
|
|
||||||
extern void Mem_Init(void);
|
|
||||||
|
|
||||||
|
|
||||||
static int32_t gCoreId = 0;
|
static int32_t gCoreId = 0;
|
||||||
ALWAYS_INLINE int32_t get_core_id(void)
|
ALWAYS_INLINE int32_t get_core_id(void)
|
||||||
{
|
{
|
||||||
@ -48,7 +45,6 @@ void set_core_id(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32_t soc_drv_init()
|
int32_t soc_drv_init()
|
||||||
{
|
{
|
||||||
int apeId = get_core_id();
|
int apeId = get_core_id();
|
||||||
@ -56,13 +52,11 @@ int32_t soc_drv_init()
|
|||||||
{
|
{
|
||||||
osp_var_init();
|
osp_var_init();
|
||||||
pet_sm_init();
|
pet_sm_init();
|
||||||
Mem_Init(); /* call phy function to mem sm */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void spu_drv_init(void)
|
void spu_drv_init(void)
|
||||||
{
|
{
|
||||||
pet_sm_alloc();
|
pet_sm_alloc();
|
||||||
|
@ -30,9 +30,3 @@ void phy_init(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mem_Init(void)
|
|
||||||
{
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,5 +17,7 @@
|
|||||||
|
|
||||||
extern int32_t spu_lib_debug_init(uint8_t core_id);
|
extern int32_t spu_lib_debug_init(uint8_t core_id);
|
||||||
|
|
||||||
|
extern int32_t spu_get_oam_handle_id(uint8_t inst_id);
|
||||||
|
|
||||||
#endif /* __SPU_LIB_DEBUG_INIT_H__ */
|
#endif /* __SPU_LIB_DEBUG_INIT_H__ */
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
#include "typedef.h"
|
#include "typedef.h"
|
||||||
#include "lib_debug_init.h"
|
#include "lib_debug_init.h"
|
||||||
#include "ucp_utility.h"
|
#include "ucp_utility.h"
|
||||||
|
#include "msg_transfer_layer.h"
|
||||||
|
#include "ucp_port.h"
|
||||||
|
|
||||||
#define SPU_APE_NUM (8)
|
#define SPU_APE_NUM (8)
|
||||||
|
|
||||||
@ -49,3 +51,13 @@ int32_t spu_lib_debug_init(uint8_t core_id)
|
|||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t spu_get_oam_handle_id(uint8_t inst_id)
|
||||||
|
{
|
||||||
|
HandleId_t handler;
|
||||||
|
handler.port_id = get_ucp_port_id();
|
||||||
|
handler.inst_id = inst_id;
|
||||||
|
handler.type_id = OAM;
|
||||||
|
|
||||||
|
return handler.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include "fh_test.h"
|
#include "fh_test.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern void Mem_Init(void);
|
||||||
|
|
||||||
#ifdef DDR_MONITOR
|
#ifdef DDR_MONITOR
|
||||||
void spu_ddr_monitor()
|
void spu_ddr_monitor()
|
||||||
@ -78,6 +79,12 @@ int32_t main(int32_t argc, char* argv[])
|
|||||||
|
|
||||||
spu_log_server_init();
|
spu_log_server_init();
|
||||||
|
|
||||||
|
#ifdef PALLADIUM_TEST
|
||||||
|
debug_write((DBG_DDR_IDX_DRV_BASE+(core_id<<2)), flag); // 0xB0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Mem_Init(); /* call phy function to mem sm */
|
||||||
|
|
||||||
#ifdef PALLADIUM_TEST
|
#ifdef PALLADIUM_TEST
|
||||||
flag++;
|
flag++;
|
||||||
debug_write((DBG_DDR_IDX_DRV_BASE+(core_id<<2)), flag);
|
debug_write((DBG_DDR_IDX_DRV_BASE+(core_id<<2)), flag);
|
||||||
|
@ -39,10 +39,12 @@ int32_t phy_fh_drv_init()
|
|||||||
fhDrvPara.rateOption = CPRI_OPTION_8;
|
fhDrvPara.rateOption = CPRI_OPTION_8;
|
||||||
fhDrvPara.mapOption = OTIC_MAP_FIGURE12;
|
fhDrvPara.mapOption = OTIC_MAP_FIGURE12;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ECPRI_DISTRIBUTED_BS
|
#ifdef ECPRI_DISTRIBUTED_BS
|
||||||
fhDrvPara.protocolSel = PROTOCOL_ECPRI;
|
fhDrvPara.protocolSel = PROTOCOL_ECPRI;
|
||||||
fhDrvPara.rateOption = ECPRI_OPTION_10G;
|
fhDrvPara.rateOption = ECPRI_OPTION_10G;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef INTEGRATED_BS
|
#ifdef INTEGRATED_BS
|
||||||
fhDrvPara.protocolSel = PROTOCOL_JESD;
|
fhDrvPara.protocolSel = PROTOCOL_JESD;
|
||||||
#endif
|
#endif
|
||||||
@ -308,7 +310,6 @@ void phy_msg_proc(uint32_t u32msg_addr, uint32_t u32msg_size)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t gDdrCallCnt = 0;
|
uint32_t gDdrCallCnt = 0;
|
||||||
void ddr_wr_callback()
|
void ddr_wr_callback()
|
||||||
{
|
{
|
||||||
@ -330,4 +331,8 @@ void phy_sniffer_data_proc()
|
|||||||
debug_write((DBG_DDR_IDX_DRV_BASE+123), gOrxCallCnt); // 0x1ec
|
debug_write((DBG_DDR_IDX_DRV_BASE+123), gOrxCallCnt); // 0x1ec
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Mem_Init(void)
|
||||||
|
{
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user