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
drivers: timer: Add TI J721e DM TIMER support #61020
drivers: timer: Add TI J721e DM TIMER support #61020
Conversation
969c880
to
9a7ce95
Compare
drivers/timer/ti_j721e_dmtimer.c
Outdated
unsigned int sys_clock_elapsed(void) | ||
{ | ||
return 0; | ||
} |
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.
@slpp95prashanth I don't think this can be empty.
Also missing sys_clock_set_timeout()
implementation?
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.
@vaishnavachath
sys_clock_elapsed returns zero if TICKLESS_CAPABLE is disabled.
sys_clock_set_timeout() is required for TICKLESS_CAPABLE option. I tested the threads and time features seems to work. I thought of adding TICKLESS_CAPABLE once initial support is merged. Shall I add it after the soc, board, device tree, interrupt controller and timers PR are merged?
This PR depends on the #60856. |
9a7ce95
to
d064f85
Compare
The Kconfig, file and compatible names for dmtimer are chosen based on linux kernel. |
d064f85
to
2ef71cf
Compare
4d5d985
to
eecfac1
Compare
@slpp95prashanth Please squash the TICKLESS support commit with the base commit. |
TI DM Timer is a dual mode timer, J721E R5 cores does not have arch timer for systick. Add DM Timer for systick timer support. Signed-off-by: Prashanth S <slpp95prashanth@yahoo.com>
eecfac1
to
b55a30f
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
In J721e, R5 cores does not have arch timer for
systick. Add DM Timer for systick timer support.
TRM for J721e https://www.ti.com/lit/zip/spruil1
File: spruil1c.pdf
TImer: section 12.10
BeagleBone AI_64 https://beagleboard.org/ai-64