aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
Commit message (Collapse)AuthorAgeFilesLines
* n3xx: Fixup for parsing the EEPROMBrent Stapleton2018-07-301-3/+2
| | | | | | | EEPROM parsing in MPM was ignoring the dt_compat number (MPM doesn't need it), so when the dt_compat number was non-zero, the CRC calculation was incorrect. CRC calculations are now done on the raw data.
* n3xx: Fix UIO usage in Aurora BISTBrent Stapleton2018-07-261-19/+23
|
* mpm: n3xx: Allow to run without daughterboards connectedTrung Tran2018-07-231-0/+2
| | | | | The product ID will fall back to the motherboard ID (n300, n310). This will load FPGA images even if there is no daughterboard connected.
* uio: mpm: Fixup for opening mboard-regs UIOBrent Stapleton2018-07-237-62/+71
| | | | | | | | | - Fix the syntax to open mboard-regs UIO objects, and change the open() and close() functions to be private. - We were calling open() twice in every context manager line- once manually, and once in __enter__. This commit corrects those usages, and allows the context manager to fully manage the opening and closing of UIO objects.
* mpm: Fix eeprom-tools in CMakeBrent Stapleton2018-07-191-2/+2
| | | | | | | Fixes the list of epprom-tools to be built in CMake. The list of tools is appended, instead of being overwritten by device-specific tools. Fixes: 300a5e3f6e5e [mpm: initial commit of E320 code]
* mpm: n3xx: bist: Only conditionally reload FPGA imageMartin Braun2018-07-191-3/+19
| | | | | | The tests for white rabbit and SFP loopback require a specific FPGA image. We now check if that image is already available before running uhd_image_loader.
* mpm: n3xx: bist: Provide switch for not reloading default FPGA imageMartin Braun2018-07-191-1/+7
|
* mpm: uio: Fix use of loggerMartin Braun2018-07-191-1/+2
| | | | When logger==None, it uio.py would fail.
* mpm: n3xx: bist: Add White Rabbit lock testMartin Braun2018-07-191-0/+33
|
* n3xx_bist: update sfp loopback testTrung Tran2018-07-181-0/+39
| | | | Load AA image before doing the bist and load HG image after the bist.
* mpm: n3xx: Init device on bootMartin Braun2018-07-182-0/+9
| | | | | Specify skip_boot_init=1 to not init during boot. This will increase boot time for an N310, typically by around 15 seconds.
* mpm: tools: eeprom-id: Add E320 product id to eeprom-idMoritz Fischer2018-07-181-0/+3
| | | | | | Add E320 product id to eeprom-id executable Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: e320_bist: Add tests for running BIST on E320Sugandha Gupta2018-07-181-0/+769
|
* e320: mpm: Add dboard and mboard sensorsSugandha Gupta2018-07-183-30/+148
| | | | | | | | Adding the following sensors: - Catalina temperature, RSSI, and LO Lock sensors - GPS lock, time, TPV, and SKY sensors Co-authored-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: initial commit of E320 codeBrent Stapleton2018-07-1820-27/+1736
| | | | Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* mpm: mg: Adding fast-reinit modeMartin Braun2018-07-172-19/+99
| | | | | | | | | | When a device is re-initialized without any changes (e.g., master_clock_rate, ref_clock_freq) then we can skip the initialization sequence and move on. This shaves a significant amount of time from the init sequence. Fast re-init can be overridden by providing the `force_reinit=1` device arg.
* mpm: mg: Move RF cal initialization after JESD initMartin Braun2018-07-171-2/+1
|
* mpm: mg: Store init args between runsMartin Braun2018-07-171-2/+6
|
* mpm: Remove unused _init_args from PeriphManagerBaseMartin Braun2018-07-171-4/+0
|
* mpm: n3xx: mg: Refactor init codeMartin Braun2018-07-174-499/+585
| | | | | | | All code relevant to initializing an N310/N300 daughterboard is moved to its own module (mg_init.py). No functional changes.
* mpm: n3xx: Remove unused importsMartin Braun2018-07-171-2/+0
|
* mpm: mg: Print AD9371 info as debug message during initMartin Braun2018-07-171-0/+8
|
* mpm: tools: eeprom-init: Fix issue with dt/mcu-compat numberMoritz Fischer2018-07-121-4/+8
| | | | | | | | | | | Fix issue with dt-compat and mcu-compat numbers not working for the case where 0 is a legitimate dt/mcu compat number. This can happen if a Rev2 board (1 in hardware) shares a DT or MCU firmware with the Rev1 board (0 in hardware). Fixes 91a5518443f ("mpm: tools: Introduce dt-compat ...") Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: n3xx: Factor out component updatingBrent Stapleton2018-07-114-73/+105
| | | | | | | | | - Refactoring component (FPGA, DTS) updating functions out of n3xx.py into their own components.py. The ZynqComponent class now defines the methods to update these two components. - Adding super().__init__() to the PeriphManagerBase class. This is needed to get the multiple inheritance used in N3XX now to work, and (apparently) good Python practice.
* mpm: n3xx: Factor out GPSd Iface functionsBrent Stapleton2018-07-062-70/+129
| | | | | | | | | | | | | | - Refactoring GPSd interface to be instead wrapped by a GPSDIfaceExtension class. This class will faciliate "extending" an object, allowing that object to call the GPSDIfaceExtension methods as their own. - New MPM devices (or whatever else) can now use the GPSDIfaceExtension class instead of writing their own GPSDIface handling functions. - N3XX now instantiates a GPSDIfaceExtension object, and extends itself. This means that an n3xx object can call the `get_gps_time` method as its own, for example. - N3XX must get through initialization in order for the GPSd methods to be registered.
* mpm: n3xx: Overridable crossbar base portBrent Stapleton2018-07-062-1/+5
| | | | | | Moving the RFNoC crossbar base port to the class overridables. MPM devices may need to reserve different numbers of ports for non-blocks; this can now be done by overriding the crossbar_base_port.
* mpm: ad9371: Accept PID 0x01 as well as 0x03Martin Braun2018-06-281-1/+5
|
* mpm: adding adf400x support to chipsBrent Stapleton2018-06-275-3/+226
| | | | | Adding ADF400X driver to MPM. This uses the Boost.Python bound spidev, and is largely a translation from the C++ driver in UHD.
* mpm: tools: Introduce dt-compat and mcu-compat fieldsMoritz Fischer2018-06-206-30/+140
| | | | | | | | | | | | | | | | Introduce dt-compat and mcu-compat fields into the eeprom structure. For the motherboard eeprom this is straightforward, since there's still padding bytes that could be (ab)used for this. On the dboard side more creativity is required and the original revision field of 2 bytes is reduced to only one byte revision and one byte dt-compat. Since this will only affect new units being backwards compatible with older versions of the bootloader is not an issue. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: dboard_manager: Fix docstring for get_serial()Martin Braun2018-06-181-1/+2
|
* mpm: fix sanity check in _init_peripheralsMark Meserve2018-06-131-23/+24
| | | | - change scoping of product_map in n3xx
* mpm: Remove superfluous test fileMartin Braun2018-06-101-57/+0
|
* mpm: xportmgr_udp: Catch inconsistent Ethernet device detectionsMartin Braun2018-06-081-7/+26
| | | | | | | This manager first detects all valid Ethernet devices. The checks for validity happen across multiple calls in a non-atomic fashion, so it's possible to end up with inconsistent results. To avoid such issues, we filter results without talking to the network stack as a final pass.
* mpm: net: Fix rare failures for IP addr detectionMartin Braun2018-06-081-12/+13
| | | | | | | Because the detection of valid Ethernet devices happens across multiple calls in a non-atomic fashion, we cannot assume that a device passed to net.get_iface_info() actually has a valid IP address, so we don't make that assumption.
* mpm: Use device_info to determine overlay listMartin Braun2018-06-082-9/+7
|
* mpm: n3xx: Derive product key programmaticallyMartin Braun2018-06-082-5/+40
| | | | | | Since there is no simple mapping from an arbitrary tuple of mboard- and dboard info dictionaries, we use generate_device_info() to figure out the product key.
* mpm: Distinguish mboard_info and device_infoMartin Braun2018-06-082-21/+34
| | | | | | In the N3xx series, the motherboard ID and the device ID can differ. For example, the N310 could share the same motherboard with a different device that uses different daughterboards.
* mpm: Remove 'test' periph_managerMartin Braun2018-06-082-68/+1
|
* mpm: Refactor periph manager init; split EEPROM read from restMartin Braun2018-06-081-104/+135
| | | | | The readout of EEPROMs is moved to their own functions. This will allow us to read out EEPROM values before starting the initialization.
* mpm: Adding FPGA type to device infoBrent Stapleton2018-06-061-1/+2
|
* mpm: allow multiple spi device objects to use the same chip selectMark Meserve2018-05-141-2/+2
|
* n3x0: Pick different standard tests for BISTMartin Braun2018-05-141-1/+1
| | | | Replaced 'clock_int' (which is not implemented) with 'fan'.
* mpm: n3xx: Refactor n3xx_periphs into its own moduleMartin Braun2018-05-084-390/+404
|
* mpm: xportmgr_udp: Assign xports to previously used SFPsMartin Braun2018-04-301-1/+29
| | | | | | This changes the sorting algorithm for the xport<->SFP mapping. When multiple SFPs are used, this sorting will avoid a criss-cross mapping (e.g., mapping ports 0 and 1 of 0/Radio_0 to different SFPs).
* mpm: types: Add getters for dst_ep and dts_block to SIDTrung Tran2018-04-301-4/+12
|
* mpm: rpc server: Remove disable_commit for init()Trung Trang2018-04-301-2/+0
| | | | | The async calls to long C++ methods allows the claimer loop to smoothly continue during init, so this hack is no longer necessary.
* mpm: replace long execution function with async callTrung N Tran2018-04-304-15/+76
| | | | | | - Replace mykonos finish_initialization with async version - Replace myknonos setup_cal with async version - Remove disable_timeout on rpc_server init()
* mpm: rpc server: Increase claim timeout to 5 secondsTrung Trang2018-04-301-1/+1
| | | | | | Usually, the current timeout is fine, but there are cases when a lot of RPC traffic could drown out the reclaim calls. 5 seconds is an experimentally derived safe value.
* mpm: Set C++ standard to C++14Martin Braun2018-04-301-1/+7
|
* mpm: Fixed db slot typo in db-idDerek Kozel2018-04-231-1/+1
|