File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ def id(self) -> Optional[str]:
173
173
board_id = self ._tisk_id ()
174
174
elif chip_id == chips .D1_RISCV :
175
175
board_id = self ._armbian_id ()
176
+ elif chip_id == chips .S905X :
177
+ board_id = boards .AML_S905X_CC
176
178
self ._board_id = board_id
177
179
return board_id
178
180
@@ -805,6 +807,11 @@ def greatfet_one(self) -> bool:
805
807
"""Check whether the current board is a GreatFET One."""
806
808
return self .id == boards .GREATFET_ONE
807
809
810
+ @property
811
+ def aml_s905x_cc (self ) -> bool :
812
+ """Check whether the current board is a aml-s905x-cc One."""
813
+ return self .id == boards .AML_S905X_CC
814
+
808
815
def __getattr__ (self , attr : str ) -> bool :
809
816
"""
810
817
Detect whether the given attribute is the currently-detected board. See list
Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ def _linux_id(self) -> Optional[str]:
254
254
if self .detector .check_dt_compatible_value ("sun20i-d1" ):
255
255
return chips .D1_RISCV
256
256
257
+ if self .detector .check_dt_compatible_value ("libretech,aml-s905x-cc" ):
258
+ return chips .S905X
259
+
257
260
linux_id = None
258
261
hardware = self .detector .get_cpuinfo_field ("Hardware" )
259
262
Original file line number Diff line number Diff line change 540
540
SIEMENS_SIMATIC_IOT2050_ADV ,
541
541
SIEMENS_SIMATIC_IOT2050_BASIC ,
542
542
)
543
+
544
+ # Libre Computer Boards
545
+ AML_S905X_CC = "AML-S905X-CC"
546
+
547
+ # Libre Computer Boards
548
+ _LIBRE_COMPUTER_IDS = (
549
+ AML_S905X_CC
550
+ )
Original file line number Diff line number Diff line change 21
21
SUN8I = "SUN8I"
22
22
S805 = "S805"
23
23
S905 = "S905"
24
+ S905X = "S905X"
24
25
S905X3 = "S905X3"
25
26
S905Y2 = "S905Y2"
26
27
S922X = "S922X"
You can’t perform that action at this time.
0 commit comments