-
Notifications
You must be signed in to change notification settings - Fork 46
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
Code Review to add semifive blocks in freedom-metal-next #366
base: freedom-metal-next
Are you sure you want to change the base?
Code Review to add semifive blocks in freedom-metal-next #366
Conversation
@keith-packard @nategraff-sifive Can you please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you've identified a bug in the templates for interrupt_handlers.[ch]. Can you explain the problem and split those changes out into a separate patch?
Hi Keith, There are 2 commits. Thanks, |
Nate has left SiFive, so it's falling on me to go back over these issues and figure out what's going on. I'll take a look and see if I can understand what the underlying issue is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this looks reasonable. Can you provide a DTS which causes a problem so I can review that along with your solution?
I don't know how to share file with you by PR in github. I'll send dts file by email to you. Please check that. |
Issue Description
This PR is for not to merge into sifive/freedom-metal. It is just for code review.
In sesame project, it needs to add a new custom IP driver code. I followed making rules of sifive-blocks to add semifive-blocks for a new custom IP driver.
Please check whether it is proper and which I missed something in this code.
semifive-blocks
core.dts has the following custom devices.
To support Synopsys I2C, semifive-blocks is composed as follows.
i2c-designware.c and header files are not implemented yet. I added them to show how to make the software structure for new custom IP. Now they are empty. I'll fill a driver code for Synopsys i2c in them.
We will add more custom IP drivers later in semifive-blocks as an above frame.
Test
It makes metal_platform/private_synopsys_i2c_v2_02a_stadard.h files well by built with template files.