1
0
Fork 0

zynq::flash: configure quad i/o fast read mode

This commit is contained in:
Astro 2019-11-29 23:37:54 +01:00
parent 78caca1f04
commit a8a7f11990
1 changed files with 8 additions and 4 deletions

View File

@ -172,10 +172,14 @@ impl Flash<()> {
); );
self.regs.lqspi_cfg.write(regs::LqspiCfg::zeroed() self.regs.lqspi_cfg.write(regs::LqspiCfg::zeroed()
.inst_code(0x3) // Quad I/O Fast Read
.u_page(false) .inst_code(0xEB)
.sep_bus(false) .mode_bits(0xFF)
.two_mem(false) .dummy_byte(0x2)
.mode_en(true)
// 2 devices
.two_mem(true)
// Linear Addressing Mode
.lq_mode(true) .lq_mode(true)
); );