Skip to content

Commit 2c929e6

Browse files
authored
Merge pull request #18 from NVIDIA-AI-IOT-private/jetson
Updated hardware naming to match the Adafruit_Blinka PR
2 parents c543cd5 + 8855a2b commit 2c929e6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ def id(self):
271271
board_id = ODROID_C2
272272
elif chip_id == ap_chip.FT232H:
273273
board_id = FTDI_FT232H
274-
elif chip_id == ap_chip.TEGRAXXX:
274+
elif chip_id in (ap_chip.T210, ap_chip.T186, ap_chip.T194):
275275
board_id = self._tegra_id()
276-
277276
return board_id
278277
# pylint: enable=invalid-name
279278

adafruit_platformdetect/chip.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
S805 = "S805"
1212
S905 = "S905"
1313
SAMA5 = "SAMA5"
14-
TEGRAXXX = "TEGRAXXX"
14+
T210 = "T210"
15+
T186 = "T186"
16+
T194 = "T194"
1517
GENERIC_X86 = "GENERIC_X86"
1618
FT232H = "FT232H"
1719

@@ -81,7 +83,12 @@ def _linux_id(self):
8183

8284
compatible = self.detector.get_device_compatible()
8385
if compatible and 'tegra' in compatible:
84-
linux_id = TEGRAXXX
86+
if 'cv' in compatible or 'txx' in compatible:
87+
linux_id = T210
88+
elif 'quill' in compatible:
89+
linux_id = T186
90+
elif 'xavier' in compatible:
91+
linux_id = T194
8592
elif hardware in ("BCM2708", "BCM2709", "BCM2835"):
8693
linux_id = BCM2XXX
8794
elif "AM33XX" in hardware:

0 commit comments

Comments
 (0)