summaryrefslogtreecommitdiffstats
path: root/firmware/zpu/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-09 20:45:35 -0800
committerJosh Blum <josh@joshknows.com>2011-01-09 20:45:35 -0800
commitac97f5ba9c07b29840eddc9f3ecfcac5d9926efd (patch)
tree83303fc8c161e31fd5c99dcd1b6c2c83b3b5278c /firmware/zpu/lib
parent4ca01c6dbeb253162e64a13f69ce981fc0b8b9bd (diff)
downloaduhd-ac97f5ba9c07b29840eddc9f3ecfcac5d9926efd.tar.gz
uhd-ac97f5ba9c07b29840eddc9f3ecfcac5d9926efd.tar.bz2
uhd-ac97f5ba9c07b29840eddc9f3ecfcac5d9926efd.zip
usrp-n210: firmware changes related to init and bootloader
added u2p init file that is called by u2init added spi flash init and added to u2pinit implemented mdelay usage in bootloader
Diffstat (limited to 'firmware/zpu/lib')
-rw-r--r--firmware/zpu/lib/u2_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/zpu/lib/u2_init.c b/firmware/zpu/lib/u2_init.c
index 71bd2c594..db26be538 100644
--- a/firmware/zpu/lib/u2_init.c
+++ b/firmware/zpu/lib/u2_init.c
@@ -26,6 +26,9 @@
#include "clocks.h"
#include "usrp2/fw_common.h"
#include "nonstdio.h"
+#ifdef USRP2P
+#include "u2p_init.h"
+#endif
/*
* We ought to arrange for this to be called before main, but for now,
@@ -50,6 +53,10 @@ u2_init(void)
i2c_init();
hal_enable_ints();
+#ifdef USRP2P
+ u2p_init();
+#endif
+
// flash all leds to let us know board is alive
hal_set_led_src(0x0, 0x1f); /* software ctrl */
hal_set_leds(0x0, 0x1f); mdelay(300);