aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/u2_init.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-17 17:52:17 -0700
committerJosh Blum <josh@joshknows.com>2010-08-17 17:52:17 -0700
commitea86054d7203ab4d2b55d88fb22afeeb421f4f9d (patch)
treede7522e955cec723415306e04548f88f0236d830 /firmware/microblaze/lib/u2_init.c
parent6c8260dcb5c73aaef38b7473acc9a332a93c5fa5 (diff)
parent864de41af536de1a4e86aa4542e2cfeb21f2d309 (diff)
downloaduhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.tar.gz
uhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.tar.bz2
uhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.zip
Merge branch 'master' into usrp1
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r--firmware/microblaze/lib/u2_init.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c
index 75bc40859..8d666b76b 100644
--- a/firmware/microblaze/lib/u2_init.c
+++ b/firmware/microblaze/lib/u2_init.c
@@ -45,22 +45,26 @@ get_hw_rev(void)
bool
u2_init(void)
{
+ hal_disable_ints();
hal_io_init();
// init spi, so that we can switch over to the high-speed clock
spi_init();
- // init i2c so we can read our rev
- i2c_init();
- get_hw_rev();
-
// set up the default clocks
clocks_init();
+ hal_uart_init();
+
+ // init i2c so we can read our rev
pic_init(); // progammable interrupt controller
+ i2c_init();
+ hal_enable_ints();
+ get_hw_rev();
+
bp_init(); // buffer pool
- hal_enable_ints();
+
// flash all leds to let us know board is alive
hal_set_leds(0x0, 0x1f);