-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add support System Timer for Renesas RZ/V2L, RZ/A3UL #95989
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
base: main
Are you sure you want to change the base?
Add support System Timer for Renesas RZ/V2L, RZ/A3UL #95989
Conversation
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
@@ -51,28 +51,37 @@ static uint32_t cyc_per_tick; | |||
#define CYC_PER_TICK cyc_per_tick | |||
|
|||
static void ostm_irq_handler(timer_callback_args_t *arg); | |||
void gtm_int_isr(void); | |||
void gtm_int_isr(void *irq); |
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.
Please correct me if I am wrong, but this prototype does not appear to match the prototype in pull/130
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.
Thanks, the RZA and RZV series define this prototype differently:
- RZA:
void gtm_int_isr(IRQn_Type const irq);
(https://github.com/renesas/hal_renesas/blob/69cc903f11517985898dca578ac86b32e83374c5/drivers/rz/fsp/src/rza/r_gtm/r_gtm.c#L44) - RZV:
void gtm_int_isr(void);
(https://github.com/renesas/hal_renesas/blob/69cc903f11517985898dca578ac86b32e83374c5/drivers/rz/fsp/src/rzv/r_gtm/r_gtm.c#L43)
Therefore, this prototype change is intended to unify the implementation and allow using a common source for both series.
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.
I had expected that the HAL would have standardized around void gtm_int_isr(IRQn_Type const irq);
and ignore the unused parameter for the rzg and rzv cases.
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.
Thanks for your suggestion. Would you consider this a blocker? It's like a callback function which is usually defined with a void* argument to accept any type of data, making it less dependent on the HAL driver.
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.
I suppose it would be a blocker to me. I can pretty much guarantee that if we don't address this now, we are going to have to address it later when any of the following occur ...
- Someone else notices the mismatch and raises an issue.
- A software quality tool flags the mismatch leading to a raised issue.
- A linker from another toolchain decides to raise a warning or even an error about it.
It is better in my mind to fix it now instead of later.
291f150
to
0137ecb
Compare
Add system timer driver support for RZ/V2L, RZ/A3UL Signed-off-by: Hoang Nguyen <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
Add gtm, os_timer nodes to Renesas RZ/V2L, RZ/A3UL Signed-off-by: Hoang Nguyen <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
Select ARM_ARCH_TIMER when RZ_OS_TIMER is not selected Signed-off-by: Hoang Nguyen <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
Add tickless concept test support for RZ/V2L-SMARC, RZ/A3UL-SMARC Signed-off-by: Hoang Nguyen <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
0137ecb
to
178223e
Compare
|
Add support system timer for Renesas RZ/V2L, RZ/A3UL:
drivers/counter/renesas_rz_gtm_timer.c
to using common source code for Renesas RZ devicestests/kernel/tickles/tickless_concept
testNeed: zephyrproject-rtos/hal_renesas#130