-
Notifications
You must be signed in to change notification settings - Fork 251
Initial support for Sifive's HiFive Unleashed #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
APQ8016 = "APQ8016" | ||
GENERIC_X86 = "GENERIC_X86" | ||
FT232H = "FT232H" | ||
HFU540 = "HFU540" | ||
|
||
class Chip: | ||
"""Attempt detection of current chip / CPU.""" | ||
|
@@ -78,6 +79,9 @@ def _linux_id(self): # pylint: disable=too-many-branches | |
if self.detector.check_dt_compatible_value("qcom,apq8016"): | ||
return APQ8016 | ||
|
||
if self.detector.check_dt_compatible_value("fu500"): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably change this to a little longer string like "sifive,fu540gsifive" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of the 3 values in the proc file, only the first or third values work. if self.detector.check_dt_compatible_value("fu500"): # Works There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about:
|
||
return HFU540 | ||
|
||
linux_id = None | ||
hardware = self.detector.get_cpuinfo_field("Hardware") | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.