From 135d562255301a1064e5fc09204a0b28f978a914 Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 29 Nov 2026 06:57:20 +0300 Subject: [PATCH] ingenic: take a T41LQ that reports the T40 SoC family as T41 A T41LQ on a VStarcam Q07 (stock SPL: "Board info: T41LQ") reads 0x1300002C = 0x10040003 SoC ID, family 0x40 0x13540250 = 0x99991111 subtype 0x9999 0x9999 is no T40 grade's code; it is the one the 0x41 branch gives the T41LQ. In the 0x40 branch it fell to "default: return -1": the chip came out "unknown", ipcinfo -f printed "t40", and OpenIPC's load_ingenic, which takes the SoC from there, ran "modprobe tx-isp-t40" -- no ISP, no video. Handle it the way 0xAAAA (a T41NQ in the same position, OpenIPC/majestic#376) already is: chip_generation 0x41 and the T41LQ index. Now ipcinfo -c prints t41lq and -f t41 on that camera, and the ISP loads. Only the measured code; the other T41-only subtypes may well show up under family 0x40 too, but nobody has read one there yet. Co-Authored-By: Claude Opus 5.5 --- src/hal/ingenic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hal/ingenic.c b/src/hal/ingenic.c index 172c521..f41f8a6 100644 --- a/src/hal/ingenic.c +++ b/src/hal/ingenic.c @@ -199,6 +199,15 @@ static int get_cpu_id() { * have been set from T40's function list on a T41. */ chip_generation = 0x41; return 34; + case 0x9999: + /* The same for a T41LQ: SoC ID 0x10040003 (family 0x40), + * subtype 0x9999, the code the 0x41 branch gives the T41LQ. + * Measured on a VStarcam Q07, whose stock SPL prints "Board + * info: T41LQ". Before, it came out "unknown" and ipcinfo -f + * said "t40", so OpenIPC's load_ingenic asked for tx-isp-t40 + * and the camera had no video. */ + chip_generation = 0x41; + return 31; default: return -1; }