aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iceprog/iceprog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c
index 8c3827b..34245e3 100644
--- a/iceprog/iceprog.c
+++ b/iceprog/iceprog.c
@@ -202,9 +202,15 @@ static void flash_reset()
{
uint8_t data[8] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
+ // This disables CRM is if it was enabled
flash_chip_select();
mpsse_xfer_spi(data, 8);
flash_chip_deselect();
+
+ // This disables QPI if it was enable
+ flash_chip_select();
+ mpsse_xfer_spi_bits(0xFF, 2);
+ flash_chip_deselect();
}
static void flash_power_up()