Skip to content

Commit

Permalink
Merge pull request #351 from walnutpi/main
Browse files Browse the repository at this point in the history
add support for walnutpi-1b-emmc
  • Loading branch information
makermelissa committed May 30, 2024
2 parents 55c52a3 + e3fc605 commit f1754d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
board = boards.ORANGE_PI_ZERO_PLUS_2H5
elif "H616" in chip_id:
board = boards.ORANGE_PI_ZERO_2
elif "walnutpi-1b-emmc" in board_value:
board = boards.WALNUT_PI_1B_EMMC
elif "walnutpi-1b" in board_value:
board = boards.WALNUT_PI_1B
# TODO: Add other specifc board contexts here
Expand Down
6 changes: 5 additions & 1 deletion adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

# Walnut Pi boards
WALNUT_PI_1B = "WALNUT_PI_1B"
WALNUT_PI_1B_EMMC = "WALNUT_PI_1B_EMMC"

# Clockwork Pi boards
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
Expand Down Expand Up @@ -238,7 +239,10 @@
)

# WalnutPi
_WALNUT_PI_IDS = (WALNUT_PI_1B,)
_WALNUT_PI_IDS = (
WALNUT_PI_1B,
WALNUT_PI_1B_EMMC,
)

# STM32MP1
_STM32MP1_IDS = (
Expand Down

0 comments on commit f1754d0

Please sign in to comment.