Add support for colorlight i9 board #266
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's largely copied from the ULX3S board, with pins renamed following LiteX-Boards and all the non-applicable peripherals removed. I've successfully run a number of the projects on this device, with some changes. In particular I noticed that many of the ULX3S-specific changes appeared to be compatible with ECP5-based targets in general, and indeed worked quite well on my board (e.g. the SDRAM controller was much more stable using the ULX3S code than the generic code), so I generalised those preprocessor conditions where it seemed appropriate (#246). Colorlight i5 support would also be quite easy to add, as it's essentially the same except for a smaller ECP5 chip and the LED on a different pin, but I haven't done that here as I don't have one to test it.
Edit: I realised I'm only able to reuse the ULX3S PLLs because it has the same input clock frequency as the colorlight (25MHz), so the preprocessor conditions should probably be updated to include that detail too, not sure what the best way to do that is though?