Skip to content

Commit 1067d51

Browse files
authored
Merge pull request #83 from geekguy-wy/add_udoo_bolt_detect
Added UDOO Bolt V3 and V8 detection. Original Bolt is Bolt V8 now
2 parents a1cbc7b + ebb72a4 commit 1067d51

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def _linux_id(self):
137137
vendor_id = self.detector.get_cpuinfo_field("vendor_id")
138138
if vendor_id == "AuthenticAMD":
139139
model_name = self.detector.get_cpuinfo_field("model name").upper()
140+
if "RYZEN EMBEDDED V1202B" in model_name:
141+
linux_id = chips.RYZEN_V1202B
140142
if "RYZEN EMBEDDED V1605B" in model_name:
141143
linux_id = chips.RYZEN_V1605B
142144
else:

adafruit_platformdetect/constants/boards.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
ROCK_PI_S = "ROCK_PI_S"
9696

9797
GREATFET_ONE = "GREATFET_ONE"
98-
UDOO_BOLT = "UDOO_BOLT"
98+
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
99+
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
99100

100101
# pylint: enable=bad-whitespace
101102

@@ -345,4 +346,4 @@
345346
_PINE64_DEV_IDS = (PINE64, PINEBOOK, PINEPHONE)
346347

347348
# UDOO
348-
_UDOO_BOARD_IDS = {UDOO_BOLT: ("SC40-2000-0000-C0|C",)}
349+
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",)}

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
BCM2XXX = "BCM2XXX"
55
ESP8266 = "ESP8266"
66
EXYNOS5422 = "EXYNOS5422"
7+
RYZEN_V1202B = "RYZEN_V1202B"
78
RYZEN_V1605B = "RYZEN_V1605B"
89
SAMD21 = "SAMD21"
910
STM32 = "STM32"

0 commit comments

Comments
 (0)