mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-09-02 15:02:51 +08:00
fix review points.
This commit is contained in:
+3
-1
@@ -1833,10 +1833,12 @@ void init_smi(void)
|
|||||||
SFR_DATA_U16 = 0x00ff;
|
SFR_DATA_U16 = 0x00ff;
|
||||||
if (!machine_detected.isRTL8373) {
|
if (!machine_detected.isRTL8373) {
|
||||||
if (machine.n_sfp == 2) {
|
if (machine.n_sfp == 2) {
|
||||||
|
// 0x000000f0, only change the bytes that differs from the default.
|
||||||
SFR_DATA_0 = 0xf0;
|
SFR_DATA_0 = 0xf0;
|
||||||
} else {
|
} else {
|
||||||
|
// 0x000001f8, only change the bytes that differs from the default.
|
||||||
|
SFR_DATA_8 = 0x01;
|
||||||
SFR_DATA_0 = 0xf8;
|
SFR_DATA_0 = 0xf8;
|
||||||
SFR_DATA_16 = 0x1f;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reg_write(RTL837X_REG_SMI_PORT_POLLING);
|
reg_write(RTL837X_REG_SMI_PORT_POLLING);
|
||||||
|
|||||||
Reference in New Issue
Block a user