Skip to content

add support for walnutpi-1b-emmc #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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