Merge pull request #73 from logicog/dio

Enable Flash Dual I/O command by default.
Speed up data transfers up to 2x.
This commit is contained in:
René van Dorst
2026-01-08 21:52:52 +00:00
committed by GitHub
4 changed files with 5 additions and 5 deletions
-1
View File
@@ -23,7 +23,6 @@
#pragma constseg BANK1
extern __code struct machine machine;
extern __xdata uint16_t mpos;
extern __xdata uint8_t stpEnabled;
extern __code uint8_t log_to_phys_port[9];
-1
View File
@@ -41,7 +41,6 @@ __xdata uint8_t outbuf[TCP_OUTBUF_SIZE];
__xdata uint8_t entry;
__xdata uint16_t slen;
__xdata uint16_t o_idx;
__xdata uint16_t mpos;
__xdata uint16_t len_left;
__xdata uint16_t cont_len;
__xdata uint32_t cont_addr;
+4 -2
View File
@@ -8,8 +8,6 @@
#include "rtl837x_sfr.h"
__xdata uint8_t dio_enabled;
__xdata uint8_t markbuf[16];
extern __xdata uint16_t mpos;
__xdata struct flash_region_t flash_region;
@@ -159,6 +157,8 @@ void flash_read_jedecid(void)
SFR_FLASH_MODEB = 0x0;
SFR_FLASH_CMD_R = CMD_FREAD;
SFR_FLASH_DUMMYCYCLES = 8;
flash_configure_mmio();
}
@@ -318,6 +318,8 @@ void flash_read_security(void)
flash_region.len -= 4;
} while(flash_region.len);
flash_configure_mmio();
}
+1 -1
View File
@@ -1740,7 +1740,7 @@ void bootloader(void)
print_string("\nStarting up...\n");
print_string(" Flash controller\n");
flash_init(0);
flash_init(1);
// Reset NIC
reg_bit_set(RTL837X_REG_RESET, RESET_NIC_BIT);