update New Feature#1094#

1. modify ape_top.s.c and phy_init.s.c
2. call phy's function Mem_Init() init the sm
3. testcase:
   3.1 spu(case34)+arm(case5): pass
   3.2 spu(case44)+arm(case5): pass
   3.3 spu(case21)+arm(case21):pass
   3.4 spu(case14)+arm(case3): pass
This commit is contained in:
lishuang.xie 2023-09-27 18:24:33 +08:00
parent fdf04ff0e0
commit 4e29e7b2c7
2 changed files with 12 additions and 3 deletions

View File

@ -23,6 +23,9 @@
#include "pet_sm_mgt.h"
#include "osp_init.h"
extern void Mem_Init(void);
static int32_t gCoreId = 0;
ALWAYS_INLINE int32_t get_core_id(void)
{
@ -51,12 +54,12 @@ int32_t soc_drv_init()
int apeId = get_core_id();
if (0 == apeId)
{
pet_sm_init();
osp_var_init();
pet_sm_init();
Mem_Init(); /* call phy function to mem sm */
}
return 0;
return 0;
}

View File

@ -30,3 +30,9 @@ void phy_init(void)
return;
}
void Mem_Init(void)
{
return ;
}