From 0f65afc000189fbb19c0725ad96eb6f6154300d5 Mon Sep 17 00:00:00 2001 From: AI Dev Date: Mon, 16 Nov 2026 15:21:17 +0000 Subject: [PATCH 1/2] ingenic: a T41NQ that reports the T40 family's SoC ID An owner's T41NQ reads 0x10040003 at 0x1300002c, the T40 family's ID, with grade code 0xAAAA at 0x13540250. The T40 branch had no name for 0xAAAA and the chip came out as unknown; it is a T41NQ (34), and the family is T41. The four T40 grades are unchanged. OpenIPC/majestic#376 --- src/hal/ingenic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hal/ingenic.c b/src/hal/ingenic.c index 492e5f9..266154c 100644 --- a/src/hal/ingenic.c +++ b/src/hal/ingenic.c @@ -183,6 +183,12 @@ static int get_cpu_id() { return 26; case 0x4444: return 27; + case 0xAAAA: + /* A T41NQ that reports the T40 family's SoC ID (0x10040003), + * measured on an owner's camera (OpenIPC/majestic#376); no T40 + * grade uses this code */ + chip_generation = 0x41; + return 34; default: return -1; } From ffe48167fba914924c4e82e5a76ad1fa6d0a490a Mon Sep 17 00:00:00 2001 From: AI Dev Date: Mon, 16 Nov 2026 17:06:58 +0000 Subject: [PATCH 2/2] ingenic: say what the T41NQ on the T40 ID gets from the pad tables Review on #285: routing it to T41 takes away the T40 pad table it was given while it came out unknown. That table describes a T40's pins; with none, pad lookups refuse instead of muxing a T41 pin by a T40 function name. --- src/hal/ingenic.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/hal/ingenic.c b/src/hal/ingenic.c index 266154c..dbded80 100644 --- a/src/hal/ingenic.c +++ b/src/hal/ingenic.c @@ -186,7 +186,14 @@ static int get_cpu_id() { case 0xAAAA: /* A T41NQ that reports the T40 family's SoC ID (0x10040003), * measured on an owner's camera (OpenIPC/majestic#376); no T40 - * grade uses this code */ + * grade uses this code. + * + * As a T41 it has no pad table (ingenic_soc() knows T21, T23, + * T31 and T40), so pad lookups answer "no table" for it. + * Before, it came out "unknown" with chip_generation still + * 0x40, and pad lookups quietly used T40's table: a pin muxed + * by name would have been set from T40's function list on a + * T41. A T41 table is the fix for that, not this branch. */ chip_generation = 0x41; return 34; default: