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:
parent
fdf04ff0e0
commit
4e29e7b2c7
@ -23,6 +23,9 @@
|
|||||||
#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)
|
||||||
{
|
{
|
||||||
@ -51,9 +54,9 @@ int32_t soc_drv_init()
|
|||||||
int apeId = get_core_id();
|
int apeId = get_core_id();
|
||||||
if (0 == apeId)
|
if (0 == apeId)
|
||||||
{
|
{
|
||||||
pet_sm_init();
|
|
||||||
|
|
||||||
osp_var_init();
|
osp_var_init();
|
||||||
|
pet_sm_init();
|
||||||
|
Mem_Init(); /* call phy function to mem sm */
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -30,3 +30,9 @@ void phy_init(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Mem_Init(void)
|
||||||
|
{
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user