From 4b94840abf5e74a1f4b4f4cff6bc8ff5a8296b59 Mon Sep 17 00:00:00 2001 From: Virendra Kakade Date: Wed, 23 Mar 2022 17:10:08 -0500 Subject: fixup! uhd: add support for max10 variants --- mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_mpm') diff --git a/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py b/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py index 388706b5a..40a6652c1 100644 --- a/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py +++ b/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py @@ -111,9 +111,11 @@ class Max10CpldFlashCtrl(): # value encoded in the FLASH_CFM0_START_ADDR_REG # register start_addr = self.get_start_addr() - if start_addr == 0x9C00: + # 0x9C00 -> X410 MB, 0x1000 -> ZBX DB + if start_addr in [0x9C00, 0x1000]: self.max10_variant = "m04" - elif start_addr == 0xAC00: + # 0xAC00 -> X410 MB, 0x2000 -> ZBX DB + elif start_addr in [0xAC00, 0x2000]: self.max10_variant = "m08" else: raise RuntimeError('Unknown MAX10 variant (FLASH_CFM0_START_ADDR_REG=0x{:04X})'.format(start_addr)) -- cgit v1.2.3