Skip to content

Commit ffef1f3

Browse files
authored
Merge pull request #126 from twa127/master
Enable chip detect for Orange Pi Zero Plus2 H5
2 parents 168ff6b + 4efebcf commit ffef1f3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ def _armbian_id(self):
256256
board = boards.ORANGE_PI_2
257257
if board_value == "bananapim2zero":
258258
board = boards.BANANA_PI_M2_ZERO
259+
if board_value == "orangepizeroplus2-h5":
260+
board = boards.ORANGE_PI_ZERO_PLUS_2H5
259261

260262
return board
261263

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def _linux_id(self):
153153
if self.detector.check_dt_compatible_value("sun50i-a64"):
154154
return chips.A64
155155

156+
if self.detector.check_dt_compatible_value("sun50i-h5"):
157+
return chips.H5
158+
156159
if self.detector.check_dt_compatible_value("mediatek,mt8167"):
157160
return chips.MT8167
158161

0 commit comments

Comments
 (0)