Skip to content

Commit

Permalink
Merge pull request #261 from MrPanc0/main
Browse files Browse the repository at this point in the history
Add Odroid M1 and RK3568B2
  • Loading branch information
makermelissa authored Nov 23, 2022
2 parents cd400bb + 3c18843 commit b6f715e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def id(self) -> Optional[str]:
board_id = boards.RASPBERRY_PI_PICO
elif chip_id == chips.S805:
board_id = boards.ODROID_C1
elif chip_id == chips.RK3568B2:
board_id = boards.ODROID_M1
elif chip_id == chips.S905:
board_id = boards.ODROID_C2
elif chip_id == chips.S905X3:
Expand Down
3 changes: 3 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ def _linux_id(self) -> Optional[str]:
if self.detector.check_dt_compatible_value("rockchip,rk3568"):
return chips.RK3568

if self.detector.check_dt_compatible_value("rockchip,rk3568b2"):
return chips.RK3568B2

if self.detector.check_dt_compatible_value("rockchip,rk3588"):
return chips.RK3588

Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
ODROID_C4 = "ODROID_C4"
ODROID_N2 = "ODROID_N2"
ODROID_XU4 = "ODROID_XU4"
ODROID_M1 = "ODROID_M1"

FTDI_FT232H = "FTDI_FT232H"
FTDI_FT2232H = "FTDI_FT2232H"
Expand Down Expand Up @@ -314,6 +315,7 @@
ODROID_C4,
ODROID_N2,
ODROID_XU4,
ODROID_M1,
)

_BEAGLEBONE_IDS = (
Expand Down
1 change: 1 addition & 0 deletions adafruit_platformdetect/constants/chips.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
RK3288 = "RK3288"
RK3566 = "RK3566"
RK3568 = "RK3568"
RK3568B2 = "RK3568B2"
RK3588 = "RK3588"
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
STM32F405 = "STM32F405"
Expand Down

0 comments on commit b6f715e

Please sign in to comment.