Code Review to add semifive blocks in freedom-metal-next#366
Code Review to add semifive blocks in freedom-metal-next#366aidenschoi wants to merge 2 commits intosifive:freedom-metal-nextfrom
Conversation
|
@keith-packard @nategraff-sifive Can you please review this PR? |
keith-packard
left a comment
There was a problem hiding this comment.
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. |
keith-packard
left a comment
There was a problem hiding this comment.
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.