From a8a7f11990d0da31eea9a58fe11ea4ccf1caaf56 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 29 Nov 2019 23:37:54 +0100 Subject: [PATCH] zynq::flash: configure quad i/o fast read mode --- src/zynq/flash/mod.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/zynq/flash/mod.rs b/src/zynq/flash/mod.rs index cc1eadf..3866f37 100644 --- a/src/zynq/flash/mod.rs +++ b/src/zynq/flash/mod.rs @@ -172,10 +172,14 @@ impl Flash<()> { ); self.regs.lqspi_cfg.write(regs::LqspiCfg::zeroed() - .inst_code(0x3) - .u_page(false) - .sep_bus(false) - .two_mem(false) + // Quad I/O Fast Read + .inst_code(0xEB) + .mode_bits(0xFF) + .dummy_byte(0x2) + .mode_en(true) + // 2 devices + .two_mem(true) + // Linear Addressing Mode .lq_mode(true) );