ramips: improve MT7621S core detection
authorMieczyslaw Nalewaj <[email protected]>
Sun, 16 Feb 2025 20:23:32 +0000 (21:23 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 17 Feb 2025 22:43:27 +0000 (23:43 +0100)
commitbb84c256e701a21a97443ffe9dd1d510bd6c1c40
treef799479bb35bfff81bacc56904d121ffd1b84965
parent38c21271d2b5749f135d662c2b28ef2bbdf607b8
ramips: improve MT7621S core detection

The proposed detection method was based on reading the LAUNCH_FREADY core flag.
However, this method only works before the cores are launched.
For this reason, the core number detection method has been changed to a simpler one.
For mt6721s the 17th revision bit is zero, hence we know that it is this chip,
so the number of cores is 1.

Fixes: https://github.com/openwrt/openwrt/issues/17764
Tested-by: Enrico Mioso <[email protected]>
Tested-by: Simon Etzlstorfer <[email protected]>
Tested-by: Mauri Sandberg <[email protected]>
Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/17834
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/ramips/patches-6.6/320-MIPS-add-support-for-buggy-MT7621S-core-detection.patch