@@ -65,12 +65,16 @@ def id(self) -> Optional[str]:
65
65
board_id = self ._armbian_id () or self ._allwinner_variants_id ()
66
66
elif chip_id == chips .BCM2XXX :
67
67
board_id = self ._pi_id ()
68
+ elif chip_id == chips .OS_AGNOSTIC :
69
+ board_id = boards .OS_AGNOSTIC_BOARD
68
70
elif chip_id == chips .AM625X :
69
71
board_id = self ._beaglebone_id ()
70
72
elif chip_id == chips .AM33XX :
71
73
board_id = self ._beaglebone_id ()
72
74
elif chip_id == chips .AM65XX :
73
75
board_id = self ._siemens_simatic_iot2000_id ()
76
+ elif chip_id == chips .AM67A :
77
+ board_id = self ._beagleyai_id ()
74
78
elif chip_id == chips .DRA74X :
75
79
board_id = self ._bbai_id ()
76
80
elif chip_id == chips .SUN4I :
@@ -340,6 +344,12 @@ def _beaglebone_id(self) -> Optional[str]:
340
344
return None
341
345
342
346
# pylint: enable=no-self-use
347
+ def _beagleyai_id (self ) -> Optional [str ]:
348
+ """Try to detect id of a BeagleY-AI board."""
349
+ board_value = self .detector .get_device_model ()
350
+ if "BeagleY-AI" in board_value :
351
+ return boards .BEAGLEY_AI
352
+ return None
343
353
344
354
def _bbai_id (self ) -> Optional [str ]:
345
355
"""Try to detect id of a Beaglebone AI related board."""
@@ -734,6 +744,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
734
744
board = boards .ORANGE_PI_ZERO_PLUS_2H5
735
745
elif "H616" in chip_id :
736
746
board = boards .ORANGE_PI_ZERO_2
747
+ elif "walnutpi-1b-emmc" in board_value :
748
+ board = boards .WALNUT_PI_1B_EMMC
737
749
elif "walnutpi-1b" in board_value :
738
750
board = boards .WALNUT_PI_1B
739
751
# TODO: Add other specifc board contexts here
@@ -1036,6 +1048,7 @@ def lazily_generate_conditions():
1036
1048
yield self .board .QTPY_U2IF
1037
1049
yield self .board .QT2040_TRINKEY_U2IF
1038
1050
yield self .board .KB2040_U2IF
1051
+ yield self .board .OS_AGNOSTIC_BOARD
1039
1052
1040
1053
return any (condition for condition in lazily_generate_conditions ())
1041
1054
@@ -1105,6 +1118,11 @@ def microchip_mcp2221(self) -> bool:
1105
1118
"""Check whether the current board is a Microchip MCP2221."""
1106
1119
return self .id == boards .MICROCHIP_MCP2221
1107
1120
1121
+ @property
1122
+ def os_agnostic_board (self ) -> bool :
1123
+ """Check whether the current board is an OS agnostic special case."""
1124
+ return self .id == boards .OS_AGNOSTIC_BOARD
1125
+
1108
1126
@property
1109
1127
def pico_u2if (self ) -> bool :
1110
1128
"""Check whether the current board is a RPi Pico w/ u2if."""
0 commit comments