Detect SOC type and use detected SOC type to init the hardware.

Detect the SOC type and variant. RTL8372 vs RTL8373 and also is it as
non-N/N variant of the SOC.
Even if the machine profile is wrong the hardware will be initilised on
the detected type.
This commit is contained in:
René van Dorst
2026-01-25 16:55:43 +01:00
parent 17b428a603
commit aa750d8ff1
3 changed files with 33 additions and 15 deletions
+1
View File
@@ -1,6 +1,7 @@
#ifndef _RTL837X_REGS_H_
#define _RTL837X_REGS_H_
#define RTL837X_REG_CHIP_ID 0x0004
#define RTL837X_REG_CHIP_INFO 0x000c
#define RTL837X_REG_RESET 0x0024
#define RESET_SOC_BIT 0