summaryrefslogtreecommitdiff
path: root/firmware/src/dfu/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/dfu/flash.c')
-rw-r--r--firmware/src/dfu/flash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/src/dfu/flash.c b/firmware/src/dfu/flash.c
index 4d0c9d9..0411f73 100644
--- a/firmware/src/dfu/flash.c
+++ b/firmware/src/dfu/flash.c
@@ -65,7 +65,6 @@ void flash_init(void)
{
unsigned int fmcn = AT91F_MC_EFC_ComputeFMCN(MCK);
- AT91F_MC_EFC_CfgModeReg(AT91C_BASE_MC, fmcn << 16 | AT91C_MC_FWS_3FWS |
- AT91C_MC_FRDY | AT91C_MC_LOCKE |
- AT91C_MC_PROGE);
+ AT91F_MC_EFC_CfgModeReg(AT91C_BASE_MC, (fmcn&0xff) << 16 |
+ AT91C_MC_FWS_3FWS);
}
personal git repositories of Harald Welte. Your mileage may vary