diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-04 19:39:57 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-04 19:39:57 -0700 |
commit | c8cb4bcadc32e59e98fc2901eb94830f600d5d28 (patch) | |
tree | 52e03a130bb3611b927aa80f436cc5d8d9cf9c41 /firmware/microblaze | |
parent | 20c9b194aa40e28f08898256039fbbbd7883b2ad (diff) | |
download | uhd-c8cb4bcadc32e59e98fc2901eb94830f600d5d28.tar.gz uhd-c8cb4bcadc32e59e98fc2901eb94830f600d5d28.tar.bz2 uhd-c8cb4bcadc32e59e98fc2901eb94830f600d5d28.zip |
usrp2: implemented mboard eeprom into usrp2 mboard
Diffstat (limited to 'firmware/microblaze')
-rw-r--r-- | firmware/microblaze/lib/u2_init.c | 11 | ||||
-rw-r--r-- | firmware/microblaze/lib/u2_init.h | 3 |
2 files changed, 0 insertions, 14 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c index 8d666b76b..c9b4beb2b 100644 --- a/firmware/microblaze/lib/u2_init.c +++ b/firmware/microblaze/lib/u2_init.c @@ -28,16 +28,6 @@ #include "usrp2/fw_common.h" #include "nonstdio.h" -unsigned char u2_hw_rev_major; -unsigned char u2_hw_rev_minor; - -static inline void -get_hw_rev(void) -{ - bool ok = eeprom_read(USRP2_I2C_ADDR_MBOARD, USRP2_EE_MBOARD_REV_LSB, &u2_hw_rev_minor, 1); - ok &= eeprom_read(USRP2_I2C_ADDR_MBOARD, USRP2_EE_MBOARD_REV_MSB, &u2_hw_rev_major, 1); -} - /* * We ought to arrange for this to be called before main, but for now, * we require that the user's main call u2_init as the first thing... @@ -60,7 +50,6 @@ u2_init(void) pic_init(); // progammable interrupt controller i2c_init(); hal_enable_ints(); - get_hw_rev(); bp_init(); // buffer pool diff --git a/firmware/microblaze/lib/u2_init.h b/firmware/microblaze/lib/u2_init.h index 334791189..848bd88de 100644 --- a/firmware/microblaze/lib/u2_init.h +++ b/firmware/microblaze/lib/u2_init.h @@ -20,9 +20,6 @@ #include <stdbool.h> -extern unsigned char u2_hw_rev_major; -extern unsigned char u2_hw_rev_minor; - /*! * one-time init */ |