|
70 | 70 |
|
71 | 71 | BINHO_NOVA = "BINHO_NOVA"
|
72 | 72 |
|
| 73 | +ONION_OMEGA = "ONION_OMEGA" |
| 74 | +ONION_OMEGA2 = "ONION_OMEGA2" |
| 75 | + |
73 | 76 | # pylint: enable=bad-whitespace
|
74 | 77 |
|
75 | 78 | #OrangePI
|
|
288 | 291 | ),
|
289 | 292 | }
|
290 | 293 |
|
| 294 | +# Onion omega boards |
| 295 | +_ONION_OMEGA_BOARD_IDS = ( |
| 296 | + ONION_OMEGA, |
| 297 | + ONION_OMEGA2, |
| 298 | +) |
| 299 | + |
291 | 300 | class Board:
|
292 | 301 | """Attempt to detect specific boards."""
|
293 | 302 | def __init__(self, detector):
|
@@ -343,6 +352,8 @@ def id(self):
|
343 | 352 | board_id = MICROCHIP_MCP2221
|
344 | 353 | elif chip_id == ap_chip.BINHO:
|
345 | 354 | board_id = BINHO_NOVA
|
| 355 | + elif chip_id == ap_chip.ONION: |
| 356 | + board_id = ONION_OMEGA |
346 | 357 | return board_id
|
347 | 358 | # pylint: enable=invalid-name
|
348 | 359 |
|
@@ -489,13 +500,18 @@ def any_sifive_board(self):
|
489 | 500 | """Check whether the current board is any defined Jetson Board."""
|
490 | 501 | return self.id in _SIFIVE_IDS
|
491 | 502 |
|
| 503 | + @property |
| 504 | + def any_onion_omega_board(self): |
| 505 | + """Check whether the current board is any defined OpenWRT board.""" |
| 506 | + return self.id in _ONION_OMEGA_BOARD_IDS |
| 507 | + |
492 | 508 | @property
|
493 | 509 | def any_embedded_linux(self):
|
494 | 510 | """Check whether the current board is any embedded Linux device."""
|
495 | 511 | return self.any_raspberry_pi or self.any_beaglebone or \
|
496 | 512 | self.any_orange_pi or self.any_giant_board or self.any_jetson_board or \
|
497 | 513 | self.any_coral_board or self.any_odroid_40_pin or self.any_96boards or \
|
498 |
| - self.any_sifive_board |
| 514 | + self.any_sifive_board or self.any_onion_omega_board |
499 | 515 |
|
500 | 516 | @property
|
501 | 517 | def ftdi_ft232h(self):
|
|
0 commit comments