diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-09 20:45:35 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-09 20:45:35 -0800 |
commit | ac97f5ba9c07b29840eddc9f3ecfcac5d9926efd (patch) | |
tree | 83303fc8c161e31fd5c99dcd1b6c2c83b3b5278c /firmware/zpu/lib | |
parent | 4ca01c6dbeb253162e64a13f69ce981fc0b8b9bd (diff) | |
download | uhd-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.c | 7 |
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); |