diff --git a/src/hal/gm.c b/src/hal/gm.c index aa803bf..737f5c7 100644 --- a/src/hal/gm.c +++ b/src/hal/gm.c @@ -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]; @@ -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: