mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
Add flash support for VCU128
VCU128 does not have secondary flash.
This commit is contained in:
+14
-1
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user