Merge pull request #306 from jgdempsey/main

added Nanopi Neo 2 board
This commit is contained in:
Melissa LeBlanc-Williams 2023-08-01 08:53:06 -07:00 committed by GitHub
commit 96871229e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -398,6 +398,8 @@ class Board:
board = boards.NANOPI_DUO2
elif board_value == "nanopineo":
board = boards.NANOPI_NEO
elif board_value == "nanopineo2":
board = boards.NANOPI_NEO_2
elif board_value == "nezha":
board = boards.LICHEE_RV
elif board_value == "pcduino2":
@ -663,6 +665,8 @@ class Board:
if "nanopi" in board_value:
if "neo" in board_value and "SUN8I" in chip_id:
board = boards.NANOPI_NEO_AIR
elif "neo2" in board_value and "H5" in chip_id:
board = boards.NANOPI_NEO_2
elif any(x in board_value for x in ("orange pi", "orangepi")):
if "zero" in board_value:
if "H5" in chip_id:

View file

@ -63,6 +63,8 @@ ORANGE_PI_5 = "ORANGE_PI_5"
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
NANOPI_DUO2 = "NANOPI_DUO2"
NANOPI_NEO = "NANOPI_NEO"
NANOPI_NEO_2 = "NANOPI_NEO_2"
# Banana Pi boards
BANANA_PI_M2_ZERO = "BANANA_PI_M2_ZERO"
@ -250,6 +252,7 @@ _NANOPI_IDS = (
NANOPI_NEO_AIR,
NANOPI_DUO2,
NANOPI_NEO,
NANOPI_NEO_2,
)
# BananaPI