-
Notifications
You must be signed in to change notification settings - Fork 0
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
Write a driver for the LiteX timer #11
Comments
The litex timer object is currently broken in QEMU - timvideos/qemu-litex#10 |
https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/mor1kx/core.py#L29 -- |
It seems probably better to use the litex timer in case we want to switch to another cpu (or are do you plan to only use or1k?) |
Yep, litex timer. I'll probably just hack the kernel for now, and make a new CONFIG option for timer source later. Just going to paste some links here for my reference: https://github.com/timvideos/HDMI2USB-firmware-prebuilt/blob/master/archive/master/v0.0.3-703-ga16b484/mimasv2/base/or1k/software/include/generated/csr.h#L300 |
So the summary seems to be;
|
Hi all, is this still an open issue, or has it been superseded by other work? |
@mateusz-holenko Would probably know the current state... |
@tcal-x I don't think there is a LiteX timer driver for Linux at the moment. We worked on Zephyr version which is available in mainline: https://github.com/zephyrproject-rtos/zephyr/blob/master/drivers/timer/litex_timer.c. LiteX/VexRiscv uses
|
It seems or1k has an timer object built into the CPU core?
litex has its own timer object.
Figure out the following;
The text was updated successfully, but these errors were encountered: