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
+6
View File
@@ -38,4 +38,10 @@ typedef struct machine {
int8_t reset_pin;
};
typedef struct machine_runtime
{
uint8_t isRTL8373 : 1;
uint8_t isN : 1;
};
#endif