Skip to content

Commit 5423a45

Browse files
authored
Merge pull request #113 from makermelissa/master
Change Pine64 to use dt-compatible
2 parents bcb2448 + 1fa338d commit 5423a45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def _linux_id(self):
150150
if self.detector.check_dt_compatible_value("st,stm32mp157"):
151151
return chips.STM32MP157
152152

153+
if self.detector.check_dt_compatible_value("sun50i-a64"):
154+
return chips.A64
155+
153156
linux_id = None
154157
hardware = self.detector.get_cpuinfo_field("Hardware")
155158

@@ -237,8 +240,6 @@ def _linux_id(self):
237240
linux_id = chips.SAMA5
238241
elif "Pinebook" in hardware:
239242
linux_id = chips.A64
240-
elif "sun50iw1p1" in hardware:
241-
linux_id = chips.A64
242243
elif "ASUS_TINKER_BOARD" in hardware:
243244
linux_id = chips.RK3288
244245
elif "Xilinx Zynq" in hardware:

0 commit comments

Comments
 (0)