File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 58
58
ODROID_C2 = "ODROID_C2"
59
59
60
60
FTDI_FT232H = "FT232H"
61
- LINARO_96BOARDS = "LINARO_96BOARDS "
61
+ DRAGONBOARD_410C = "DRAGONBOARD_410C "
62
62
# pylint: enable=bad-whitespace
63
63
64
64
#OrangePI
113
113
OSD3358_SM_RED ,
114
114
)
115
115
116
+ _LINARO_96BOARDS_IDS = (
117
+ DRAGONBOARD_410C ,
118
+ )
119
+
116
120
# BeagleBone eeprom board ids from:
117
121
# https://github.com/beagleboard/image-builder
118
122
# Thanks to zmatt on freenode #beagle for pointers.
@@ -291,7 +295,7 @@ def id(self):
291
295
elif chip_id == ap_chip .FT232H :
292
296
board_id = FTDI_FT232H
293
297
elif chip_id == ap_chip .APQ8016 :
294
- board_id = LINARO_96BOARDS
298
+ board_id = DRAGONBOARD_410C
295
299
elif chip_id in (ap_chip .T210 , ap_chip .T186 , ap_chip .T194 ):
296
300
board_id = self ._tegra_id ()
297
301
return board_id
@@ -378,12 +382,7 @@ def _tegra_id(self):
378
382
379
383
@property
380
384
def any_96boards (self ):
381
- """Check if the current board is any 96Boards-family board."""
382
- return (
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
- )
385
+ return self .id in _LINARO_96BOARDS_IDS
387
386
388
387
@property
389
388
def any_raspberry_pi (self ):
Original file line number Diff line number Diff line change 8
8
9
9
print ("Board id: " , detector .board .id )
10
10
11
- print ("Is this a 96Boards board ?" , detector .board .LINARO_96BOARDS )
11
+ print ("Is this a DragonBoard 410c ?" , detector .board .DRAGONBOARD_410C )
12
12
print ("Is this a Pi 3B+?" , detector .board .RASPBERRY_PI_3B_PLUS )
13
13
print ("Is this a 40-pin Raspberry Pi?" , detector .board .any_raspberry_pi_40_pin )
14
14
print ("Is this a BBB?" , detector .board .BEAGLEBONE_BLACK )
You can’t perform that action at this time.
0 commit comments