-
Notifications
You must be signed in to change notification settings - Fork 23
master: add irq #85
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
master: add irq #85
Conversation
add interrupt for rx_ready. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
add a wrapper for the phy and the core, so they will only use one csr. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@enjoy-digital please take a look |
Thanks @maass-hamburg, I already had a first look. This looks fine. I just need to think a bit about the Wrapper to try to have a consistent approach between the different cores where PHY also generally have use their own CSR. I'm not saying current approach is better, but just need to think a bit to have things consistent. I'll try to have a closer look tomorrow. |
@maass-hamburg: I think we can merge. For the LiteSPIWrapper integration (and enjoy-digital/litex#2253), I'll just think a bit. |
@enjoy-digital maybe it helps to orient us at the device trees that linux and zephyr use. If it's one node on the device tree, it should be one CSR. Or if it is needed to implement one api implementation. separate CSRs that only have a register to set the speed or the clock divider should therefore be part of the 'main' device csr. Only for liteeth it makes sense to have it separated, because the phy there contains the mdio or for 1000Base-X the registers for the link speed and state and zephyr and linux have a seperate ethernet-controller and mdio and ethernet phy. |
@maass-hamburg: I agree it's better to only have one CSR per peripheral. But I also want for now to keep the PHY+Core integration in the LiteX's Could you have a look at enjoy-digital/litex@272f024? It keeps the integration almost similar in LiteX and avoids the LiteSPIWrapper, from:
we now get:
and the CSRs of the PHY will now directly use the CSR slot of the Core. If it sounds good to you, can you update enjoy-digital/litex#2253 with this and with the IRQ support, or do you want me to do it? |
changed it, including the bios weith now no longer needs the |
Thanks for the update @maass-hamburg, with 47adbe1, I removed the wrapper since think it's no longer useful. |
add irq for the master
add a wrapper for the phy and the core, so they will only use one csr.
implementation for zephyr: zephyrproject-rtos/zephyr#91050