Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/hal/gm.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ static unsigned long gm_pmuver() {
/* The vendor 2.6.28 kernel of the GM8126 generation says "Hardware :
* Faraday GM8126" whatever the die, and has no /proc/pmu/chipver. It tells
* the dies apart on its boot line ("IC: GM8128 MP") from the PMU ID word:
* 0x812610 GM8126, 0x812620 GM8126 MP, 0x812621 GM8128 MP. Without one of
* those the Hardware line names only the generation, so that is all the
* report claims. */
* 0x812610 GM8126, 0x812620 GM8126 MP, 0x812621 and 0x812622 GM8128 MP
* (GM8128_MP_CHIP_ID and GM8128_MP1_CHIP_ID in the vendor pmu.h; a GM8128
* in #305 reads 0x812622). Without one of those the Hardware line names
* only the generation, so that is all the report claims. */
bool gm_faraday_detect_cpu(char *chip_name) {
char buf[256];

Expand All @@ -95,6 +96,7 @@ bool gm_faraday_detect_cpu(char *chip_name) {

switch (gm_pmuver()) {
case 0x812621:
case 0x812622:
strcpy(chip_name, "GM8128");
break;
case 0x812610:
Expand Down