summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-03-16 02:11:43 +0100
committerUros Majstorovic <majstor@majstor.org>2021-03-16 02:11:43 +0100
commit98941cdc89d93f5387bb98a443f06408321acc8f (patch)
tree46286a0081b1f0c925951bf825fb4769cefadb51 /fw/fe310/eos/eve
parentd05eefaf7f10769ddae3840890af6a1e52440238 (diff)
init code cleanup
Diffstat (limited to 'fw/fe310/eos/eve')
-rw-r--r--fw/fe310/eos/eve/eve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fw/fe310/eos/eve/eve.c b/fw/fe310/eos/eve/eve.c
index efbd02b..6809d72 100644
--- a/fw/fe310/eos/eve/eve.c
+++ b/fw/fe310/eos/eve/eve.c
@@ -419,7 +419,10 @@ static int _init(void) {
}
int eve_init(int pwr_on) {
+ eve_spi_start();
+
pwr_on = 1; // override this for now
+
if (pwr_on) {
int rv = _init();
if (rv) return rv;
@@ -431,5 +434,7 @@ int eve_init(int pwr_on) {
eve_touch_init();
eve_platform_init();
+ eve_spi_stop();
+
return EVE_OK;
}