Merge branch 'dev_ck_v2.1_lwh' into 'dev_ck_v2.1'
init jesd in drv_init() See merge request ucp/driver/ucp4008_platform_arm!3
This commit is contained in:
commit
df05efc8d8
@ -24,11 +24,6 @@
|
|||||||
#include "ucp_printf.h"
|
#include "ucp_printf.h"
|
||||||
#include "drv_init.h"
|
#include "drv_init.h"
|
||||||
|
|
||||||
#ifdef ENABLE_JESD_TEST
|
|
||||||
extern int32_t UCP_API_JESD_PlatformSetup (void);
|
|
||||||
extern int32_t UCP_API_TRANSCEIVER_Init(uint64_t txLo, uint64_t rxLo, uint64_t bw, uint16_t initAtt);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int32_t test_case(uint32_t argc, int32_t* argvp);
|
int32_t test_case(uint32_t argc, int32_t* argvp);
|
||||||
|
|
||||||
extern OSP_STATUS osp_init();
|
extern OSP_STATUS osp_init();
|
||||||
@ -47,12 +42,6 @@ int32_t main(int32_t argc, char* argvp[])
|
|||||||
CPU_SET(4,&mask);
|
CPU_SET(4,&mask);
|
||||||
sched_setaffinity(0,sizeof(cpu_set_t),&mask);
|
sched_setaffinity(0,sizeof(cpu_set_t),&mask);
|
||||||
|
|
||||||
#ifdef ENABLE_JESD_TEST
|
|
||||||
UCP_API_JESD_PlatformSetup();
|
|
||||||
UCP_API_TRANSCEIVER_Init(2575770000u, 2575770000u, 100000000u, 0);
|
|
||||||
usleep(100000);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
osp_init();
|
osp_init();
|
||||||
drv_init();
|
drv_init();
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
#include "ucp_printf.h"
|
#include "ucp_printf.h"
|
||||||
|
|
||||||
#ifdef ENABLE_JESD_TEST
|
#ifdef ENABLE_JESD_TEST
|
||||||
|
extern int32_t UCP_API_RFIC_CellInit(void);
|
||||||
|
extern int32_t UCP_API_RFIC_CellSetup(uint64_t txLo, uint64_t rxLo, uint64_t bw, uint16_t initAtt);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t g_drv_mem_fd = -1;
|
int32_t g_drv_mem_fd = -1;
|
||||||
@ -58,6 +59,13 @@ int32_t init_stc()
|
|||||||
|
|
||||||
int32_t drv_init(void)
|
int32_t drv_init(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef ENABLE_JESD_TEST
|
||||||
|
UCP_API_RFIC_CellInit();
|
||||||
|
UCP_API_RFIC_CellSetup(2575770000u, 2575770000u, 100000000u, 0);
|
||||||
|
usleep(100000);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(0 != arm_csu_init())
|
if(0 != arm_csu_init())
|
||||||
{
|
{
|
||||||
UCP_PRINT_ERROR("Init arm csu error!!");
|
UCP_PRINT_ERROR("Init arm csu error!!");
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 7bd0c4a6b87b70cf28b0c47eea74b731c9e90e38
|
Subproject commit 7908793098da2a3fcc5da3f3f2831c84fe4947f7
|
Loading…
x
Reference in New Issue
Block a user