Add flash support for VCU128

VCU128 does not have secondary flash.
This commit is contained in:
Jiajie Chen
2023-02-22 09:51:16 +08:00
parent f54781471b
commit 49ae479833
8 changed files with 78 additions and 33 deletions
+14 -1
View File
@@ -153,7 +153,7 @@ static std::map <uint32_t, flash_t> flash_list = {
},
{0x0020bb21, {
.manufacturer = "micron",
.model = "MT25QU01",
.model = "MT25QU01G",
.nr_sector = 2048,
.sector_erase = true,
.subsector_erase = true,
@@ -164,6 +164,19 @@ static std::map <uint32_t, flash_t> flash_list = {
.bp_len = 4,
.bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 6)}}
},
{0x0020bb22, {
.manufacturer = "micron",
.model = "MT25QU02G",
.nr_sector = 4096,
.sector_erase = true,
.subsector_erase = true,
.has_extended = true,
.tb_otp = false,
.tb_offset = (1 << 5),
.tb_register = STATR,
.bp_len = 4,
.bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 6)}}
},
{0xbf258d, {
.manufacturer = "microchip",
.model = "SST25VF040B",
+3
View File
@@ -167,6 +167,9 @@ Xilinx::Xilinx(Jtag *jtag, const std::string &filename,
_secondary_file_extension = secondary_filename.substr(
secondary_filename.find_last_of(".") + 1);
_mode = Device::SPI_MODE;
if (_device_package != "xcvu9p-flga2104") {
throw std::runtime_error("Error: secondary flash unavailable");
}
}
uint32_t idcode = _jtag->get_target_device_id();