@@ -290,10 +290,8 @@ def id(self):
290290 board_id = ODROID_C2
291291 elif chip_id == ap_chip .FT232H :
292292 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
297295 elif chip_id in (ap_chip .T210 , ap_chip .T186 , ap_chip .T194 ):
298296 board_id = self ._tegra_id ()
299297 return board_id
@@ -367,24 +365,25 @@ def _imx8mx_id(self):
367365 def _tegra_id (self ):
368366 """Try to detect the id of aarch64 board."""
369367 board_value = self .detector .get_device_model ()
368+ board = None
370369 if 'tx1' in board_value :
371- return JETSON_TX1
370+ board = JETSON_TX1
372371 elif 'quill' in board_value :
373- return JETSON_TX2
372+ board = JETSON_TX2
374373 elif 'xavier' in board_value :
375- return JETSON_XAVIER
374+ board = JETSON_XAVIER
376375 elif 'nano' in board_value :
377- return JETSON_NANO
378- return None
376+ board = JETSON_NANO
377+ return board
379378
380379 @property
381380 def any_96boards (self ):
382381 """Check if the current board is any 96Boards-family board."""
383382 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+ )
388387
389388 @property
390389 def any_raspberry_pi (self ):
0 commit comments