Skip to content

Commit

Permalink
Sigmastar: initial support for infinity6c (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Sep 4, 2023
1 parent f1d0e8b commit 96617f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/chipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ const char *getchipfamily() {
return "infinity6";
case INFINITY6B:
return "infinity6b0";
case INFINITY6C:
return "infinity6c";
case INFINITY6E:
return "infinity6e";
case T10:
Expand Down
11 changes: 7 additions & 4 deletions src/hal/sstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,19 @@ bool sstar_detect_cpu(char *chip_name) {

switch (val) {
case INFINITY5:
strcpy(chip_name, "SSC326X/SSC328X/SSC329X");
strcpy(chip_name, "SSC32X");
break;
case INFINITY6:
strcpy(chip_name, "SSC323X/SSC325X/SSC327X");
strcpy(chip_name, "SSC32X");
break;
case INFINITY6E:
strcpy(chip_name, "SSC336X/SSC338X/SSC339X");
strcpy(chip_name, "SSC33X");
break;
case INFINITY6B:
strcpy(chip_name, "SSC333X/SSC335X/SSC337X");
strcpy(chip_name, "SSC33X");
break;
case INFINITY6C:
strcpy(chip_name, "SSC37X");
break;
}
return true;
Expand Down
1 change: 1 addition & 0 deletions src/hal/sstar.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define INFINITY6E 0xF1 // Pudding
#define INFINITY6B 0xF2 // Ispahan
#define PIONEER3 0xF5 // Ikayaki
#define INFINITY6C 0xF9 // Maruko

bool mstar_detect_cpu(char *chip_name);
bool sstar_detect_cpu(char *chip_name);
Expand Down

0 comments on commit 96617f6

Please sign in to comment.