Skip to content

Commit dd3057d

Browse files
author
Alvaro Figueroa
committed
Adding support for the BeagleV Starfive, chip VIC-U7
1 parent be12509 commit dd3057d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def id(self):
114114
elif chip_id == chips.HFU540:
115115
board_id = self._sifive_id()
116116
elif chip_id == chips.C906:
117+
board_id = self.__beaglebone_id()
118+
elif chip_id == chips.VICU7:
117119
board_id = self._allwinner_id()
118120
elif chip_id == chips.VICU7:
119121
board_id = self.__beaglebone_id()
@@ -243,9 +245,20 @@ def _beaglebone_id(self):
243245
return model
244246

245247
board_value = self.detector.get_armbian_release_field("BOARD")
248+
<<<<<<< HEAD
246249

247250
if board_value == "freedom-u74-arty":
248251
return boards.BEAGLEV_STARFIV
252+
=======
253+
board = None
254+
255+
if board_value == "freedom-u74-arty":
256+
board = boards.BEAGLEV_STARFIV
257+
258+
if self.detector.chip.id != chips.BCi:
259+
# Something else, not a Pi.
260+
return None
261+
>>>>>>> d720af9... Adding support for the BeagleV Starfive, chip VIC-U7
249262

250263
return None
251264

0 commit comments

Comments
 (0)