summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eos.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eos.c')
-rw-r--r--fw/fe310/eos/eos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fw/fe310/eos/eos.c b/fw/fe310/eos/eos.c
index a099fc1..83ab288 100644
--- a/fw/fe310/eos/eos.c
+++ b/fw/fe310/eos/eos.c
@@ -13,6 +13,7 @@
#include "soc/uart.h"
#include "soc/spi.h"
+#include "dev/flash.h"
#include "dev/spi.h"
#include "dev/net.h"
#include "dev/lcd.h"
@@ -32,11 +33,11 @@ uint8_t eos_init(void) {
uint8_t wakeup_cause;
int rv;
- SPI0_REG(SPI_REG_SCKDIV) = 8;
-
PRCI_use_default_clocks();
PRCI_use_pll(PLL_REFSEL_HFXOSC, 0, 1, 31, 1, -1, -1, -1);
+ eos_flash_init();
+
wakeup_cause = eos_pwr_wakeup_cause();
eos_evtq_init(wakeup_cause);