From 7b509d6fe4ac4cfcafc63f11f5b298d3e0237acd Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 22 Apr 2011 11:47:17 -0700 Subject: N210 fw: Move spif_init into bootload_utils --- firmware/zpu/usrp2p/bootloader_utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/zpu/usrp2p') diff --git a/firmware/zpu/usrp2p/bootloader_utils.c b/firmware/zpu/usrp2p/bootloader_utils.c index 15e21f054..1efa643b6 100644 --- a/firmware/zpu/usrp2p/bootloader_utils.c +++ b/firmware/zpu/usrp2p/bootloader_utils.c @@ -15,6 +15,7 @@ #include #include #include +#include "spi.h" #define BUTTON_PUSHED ((router_status->irqs & PIC_BUTTON) ? 0 : 1) @@ -53,6 +54,8 @@ void start_program(void) } void do_the_bootload_thing(void) { + spif_init(); //initialize SPI flash clock + bool production_image = find_safe_booted_flag(); set_safe_booted_flag(0); //haven't booted yet -- cgit v1.2.3