Skip to content

Commit

Permalink
Missing bits for the first tests on hisi-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Jun 2, 2024
1 parent f263169 commit ae54204
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/hal/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,15 @@ void hal_identify(void) {
}
fclose(file);

char v3series = 0;

switch (val) {
case 0x12040000:
case 0x120a0000:
case 0x12100000: val = 0x12020000; break;
case 0x12100000:
val = 0x12020000;
v3series = 1;
break;
case 0x12080000: val = 0x12050000; break;
case 0x20080000: val = 0x20050000; break;
default: return;
Expand All @@ -137,6 +142,16 @@ void hal_identify(void) {
series[10] = series[9];
series[11] = '\0';
}

if (v3series) {
plat = HAL_PLATFORM_V3;
chnCount = V3_VENC_CHN_NUM;
chnState = (hal_chnstate*)v3_state;
isp_thread = v3_image_thread;
venc_thread = v3_video_thread;
return;
}

plat = HAL_PLATFORM_V4;
chnCount = V4_VENC_CHN_NUM;
chnState = (hal_chnstate*)v4_state;
Expand Down
1 change: 1 addition & 0 deletions src/hal/support.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "types.h"
#include "hisi/v3_hal.h"
#include "hisi/v4_hal.h"
#include "inge/t31_hal.h"
#include "sstar/i6_hal.h"
Expand Down

0 comments on commit ae54204

Please sign in to comment.