@@ -290,10 +290,8 @@ def id(self):
290
290
board_id = ODROID_C2
291
291
elif chip_id == ap_chip .FT232H :
292
292
board_id = FTDI_FT232H
293
- # TODO do we want to check chip ID at all for 96Boards?
294
- # elif chip_id == APQ8016:
295
- elif self .any_96boards :
296
- board_id = LINARO_96BOARDS
293
+ elif chip_id == ap_chip .APQ8016 :
294
+ board_id = LINARO_96BOARDS
297
295
elif chip_id in (ap_chip .T210 , ap_chip .T186 , ap_chip .T194 ):
298
296
board_id = self ._tegra_id ()
299
297
return board_id
@@ -367,24 +365,25 @@ def _imx8mx_id(self):
367
365
def _tegra_id (self ):
368
366
"""Try to detect the id of aarch64 board."""
369
367
board_value = self .detector .get_device_model ()
368
+ board = None
370
369
if 'tx1' in board_value :
371
- return JETSON_TX1
370
+ board = JETSON_TX1
372
371
elif 'quill' in board_value :
373
- return JETSON_TX2
372
+ board = JETSON_TX2
374
373
elif 'xavier' in board_value :
375
- return JETSON_XAVIER
374
+ board = JETSON_XAVIER
376
375
elif 'nano' in board_value :
377
- return JETSON_NANO
378
- return None
376
+ board = JETSON_NANO
377
+ return board
379
378
380
379
@property
381
380
def any_96boards (self ):
382
381
"""Check if the current board is any 96Boards-family board."""
383
382
return (
384
- self .detector .check_dt_compatible_value ("qcom,apq8016-sbc" )
385
- or self .detector .check_dt_compatible_value ("hisilicon,hi3660-hikey960" )
386
- or self .detector .check_dt_compatible_value ("hisilicon,hi6220-hikey" )
387
- )
383
+ self .detector .check_dt_compatible_value ("qcom,apq8016-sbc" )
384
+ or self .detector .check_dt_compatible_value ("hisilicon,hi3660-hikey960" )
385
+ or self .detector .check_dt_compatible_value ("hisilicon,hi6220-hikey" )
386
+ )
388
387
389
388
@property
390
389
def any_raspberry_pi (self ):
0 commit comments