Skip to content

Commit f1754d0

Browse files
authored
Merge pull request #351 from walnutpi/main
add support for walnutpi-1b-emmc
2 parents 55c52a3 + e3fc605 commit f1754d0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
730730
board = boards.ORANGE_PI_ZERO_PLUS_2H5
731731
elif "H616" in chip_id:
732732
board = boards.ORANGE_PI_ZERO_2
733+
elif "walnutpi-1b-emmc" in board_value:
734+
board = boards.WALNUT_PI_1B_EMMC
733735
elif "walnutpi-1b" in board_value:
734736
board = boards.WALNUT_PI_1B
735737
# TODO: Add other specifc board contexts here

adafruit_platformdetect/constants/boards.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
# Walnut Pi boards
4242
WALNUT_PI_1B = "WALNUT_PI_1B"
43+
WALNUT_PI_1B_EMMC = "WALNUT_PI_1B_EMMC"
4344

4445
# Clockwork Pi boards
4546
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
@@ -238,7 +239,10 @@
238239
)
239240

240241
# WalnutPi
241-
_WALNUT_PI_IDS = (WALNUT_PI_1B,)
242+
_WALNUT_PI_IDS = (
243+
WALNUT_PI_1B,
244+
WALNUT_PI_1B_EMMC,
245+
)
242246

243247
# STM32MP1
244248
_STM32MP1_IDS = (

0 commit comments

Comments
 (0)