Open soburi opened 4 months ago
I don't really agree about switching to FSP in its current state, because:
Sorry, but IMHO relocate to the code which violates so many Zephyr's basic rules, and nether pass the Twister tests (in the current state) is not so good idea.
Migrate old RA4M1 boards into FSP.
Objects:
Currently, Renesas RA4M1 does not use Renesas FSP (HAL). Because of the time the support was added, we can't use FSP for license incompatibility. Recently, the FSP's license changed to 3-clause BSD. So, the RA8M1 that was recently supported was added with FSP.
We need the old code to migrate into the FSP base for long-term support.
Obstacles:
The definition of the interrupt becomes an issue at this point.
The Renesas RA has an ICU (Interrupt controller Unit), Controller Unit) and performs a kind of dynamic interrupt configuration.
Normally, interrupt numbers and functions correspond one-to-one in NVIC interrupt definitions (as seen in STM32, etc.).
In the Renesas RA, interrupt functions do not correspond to numbers but are assigned by the ICU settings.
Interrupt functions are much than interrupt lines. So, defining fixed default interrupt numbers in devictree that without any conflicts is difficult. It is also difficult to ensure consistency manually, so I believe some kind of dynamic configuration will be necessary. (Configurator assigns the interrupt number at compile time in the FSP development environment.)
The current RA4M1 code considers interrupts to be dynamic interrupts and dynamically assigns numbers at initialization. (drivers/interrupt_controller/intc_renesas_ra_icu.c)
Issue:
We must decide the best way to handle and define the interrupt number.
I don't think the migration will be too complicated if this issue can be resolved.