X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3c6542087e2a0f92f5c1024b812aac969253a764..aa5cba4ca36701bdcfc153d14787045287a29d70:/bootrom/bootrom.c diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index 44bfaba6..9d9dcad4 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -272,10 +272,10 @@ void BootROM(void) LED_B_OFF(); LED_A_OFF(); - AT91C_BASE_EFC0->EFC_FMR = - AT91C_MC_FWS_1FWS | - MC_FLASH_MODE_MASTER_CLK_IN_MHZ(48); - + AT91C_BASE_EFC0->EFC_FMR = AT91C_MC_FWS_1FWS | MC_FLASH_MODE_MASTER_CLK_IN_MHZ(48); +#ifdef HAS_512_FLASH + AT91C_BASE_EFC1->EFC_FMR = AT91C_MC_FWS_1FWS | MC_FLASH_MODE_MASTER_CLK_IN_MHZ(48); +#endif // Initialize all system clocks ConfigClocks();