Skip to content

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

Merged
merged 4 commits into from
Jul 10, 2019

Conversation

fede2cr
Copy link
Contributor

@fede2cr fede2cr commented Jul 10, 2019

Board family detection still missing. Chip and board are fine.

From test code:
('Chip id: ', 'HFU540')
('Board id: ', 'SIFIVEHFUA00')
('Sifive? ', False)

Should be true.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very close. I've just requested a few changes and I think it should be good.

@@ -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"):
Copy link
Collaborator

Choose a reason for hiding this comment

The 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"

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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
if self.detector.check_dt_compatible_value("sifive,fu540gsifive"): # Does not
if self.detector.check_dt_compatible_value("sifive"): # Works
if self.detector.check_dt_compatible_value("sifive,fu540gsifive,fu500"): # Does not

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about:

if self.detector.check_dt_compatible_value("fu540gsifive"):

@makermelissa makermelissa merged commit eeb4be3 into adafruit:master Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants