Skip to content

Commit

Permalink
Merge pull request #18 from NVIDIA-AI-IOT-private/jetson
Browse files Browse the repository at this point in the history
Updated hardware naming to match the Adafruit_Blinka PR
  • Loading branch information
ladyada authored Mar 13, 2019
2 parents c543cd5 + 8855a2b commit 2c929e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ def id(self):
board_id = ODROID_C2
elif chip_id == ap_chip.FT232H:
board_id = FTDI_FT232H
elif chip_id == ap_chip.TEGRAXXX:
elif chip_id in (ap_chip.T210, ap_chip.T186, ap_chip.T194):
board_id = self._tegra_id()

return board_id
# pylint: enable=invalid-name

Expand Down
11 changes: 9 additions & 2 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
S805 = "S805"
S905 = "S905"
SAMA5 = "SAMA5"
TEGRAXXX = "TEGRAXXX"
T210 = "T210"
T186 = "T186"
T194 = "T194"
GENERIC_X86 = "GENERIC_X86"
FT232H = "FT232H"

Expand Down Expand Up @@ -81,7 +83,12 @@ def _linux_id(self):

compatible = self.detector.get_device_compatible()
if compatible and 'tegra' in compatible:
linux_id = TEGRAXXX
if 'cv' in compatible or 'txx' in compatible:
linux_id = T210
elif 'quill' in compatible:
linux_id = T186
elif 'xavier' in compatible:
linux_id = T194
elif hardware in ("BCM2708", "BCM2709", "BCM2835"):
linux_id = BCM2XXX
elif "AM33XX" in hardware:
Expand Down

0 comments on commit 2c929e6

Please sign in to comment.