Skip to content

Commit 64f239e

Browse files
committed
Add some new Goke(XMEDIA) chips
1 parent 69d7c40 commit 64f239e

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

src/hal/hisi/hal_hisi.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,10 +741,28 @@ static const char *get_hisi_chip_id(uint32_t family_id, uint8_t scsysid0) {
741741
// new chip in the line?
742742
chip_generation = HISI_V4;
743743
return "7205V210";
744+
745+
case 0x72010200:
746+
chip_generation = HISI_V4;
747+
return "7201V200";
748+
case 0x72010300:
749+
chip_generation = HISI_V4;
750+
return "7201V300";
751+
case 0x72020330:
752+
chip_generation = HISI_V4;
753+
return "7202V330";
754+
744755
case 0x72050500:
745756
// A new chip that was received in the OpenIPC lab 2023.07.28
746757
chip_generation = HISI_V4;
747758
return "7205V500";
759+
case 0x72050510:
760+
chip_generation = HISI_V4;
761+
return "7205V510";
762+
case 0x72050530:
763+
chip_generation = HISI_V4;
764+
return "7205V530";
765+
748766
default:
749767
fprintf(stderr, "Got unexpected ID 0x%x for HiSilicon\n", family_id);
750768
return "unknown";

src/hal/hisi/hal_hisi.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121

2222
#define IS_CHIP(name) (!strcmp(chip_name, name))
2323

24-
#define IS_16EV200 IS_CHIP("3516EV200") || IS_CHIP("7205V200") || IS_CHIP("7205V210") || IS_CHIP("7205V500")
24+
#define IS_16EV200 IS_CHIP("3516EV200") || IS_CHIP("7205V200") || IS_CHIP("7205V210") || IS_CHIP("7201V200") || IS_CHIP("7201V300")
2525
#define IS_16EV300 IS_CHIP("3516EV300") || IS_CHIP("7205V300")
26-
#define IS_18EV300 IS_CHIP("3518EV300") || IS_CHIP("7202V300")
26+
#define IS_18EV300 IS_CHIP("3518EV300") || IS_CHIP("7202V300") || IS_CHIP("7202V330")
2727
#define IS_16DV200 IS_CHIP("3516DV200") || IS_CHIP("7605V100")
28+
#define IS_7205V500 IS_CHIP("7205V500") || IS_CHIP("7205V510") || IS_CHIP("7205V530")
29+
2830

2931
bool hisi_ev300_get_die_id(char *buf, ssize_t len);
3032
void hisi_vi_information(sensor_ctx_t *ctx);

src/reginfo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,8 @@ static const muxctrl_reg_t **regs_by_chip() {
21912191
return _8EV300regs;
21922192
else if (IS_16DV200)
21932193
return DV200regs;
2194+
else if (IS_7205V500)
2195+
return EV200regs;
21942196
break;
21952197
case HISI_3536C:
21962198
return RCV100regs;

0 commit comments

Comments
 (0)