Browse Source

soc: renesas: ra: allocate default NMI handler for Renesas RA SoC

Allocate NMI_Handler as default NMI handler for Renesas RA family

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
pull/87209/head
The Nguyen 7 months ago committed by Benjamin Cabé
parent
commit
b72b271682
  1. 13
      soc/renesas/ra/ra2a1/soc.c
  2. 13
      soc/renesas/ra/ra2l1/soc.c
  3. 13
      soc/renesas/ra/ra4e1/soc.c
  4. 13
      soc/renesas/ra/ra4e2/soc.c
  5. 13
      soc/renesas/ra/ra4l1/soc.c
  6. 13
      soc/renesas/ra/ra4m1/soc.c
  7. 13
      soc/renesas/ra/ra4m2/soc.c
  8. 13
      soc/renesas/ra/ra4m3/soc.c
  9. 13
      soc/renesas/ra/ra4w1/soc.c
  10. 13
      soc/renesas/ra/ra6e1/soc.c
  11. 13
      soc/renesas/ra/ra6e2/soc.c
  12. 13
      soc/renesas/ra/ra6m1/soc.c
  13. 13
      soc/renesas/ra/ra6m2/soc.c
  14. 13
      soc/renesas/ra/ra6m3/soc.c
  15. 13
      soc/renesas/ra/ra6m4/soc.c
  16. 13
      soc/renesas/ra/ra6m5/soc.c
  17. 13
      soc/renesas/ra/ra8d1/soc.c
  18. 13
      soc/renesas/ra/ra8m1/soc.c
  19. 13
      soc/renesas/ra/ra8t1/soc.c

13
soc/renesas/ra/ra2a1/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -35,4 +40,12 @@ void soc_early_init_hook(void) @@ -35,4 +40,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
bsp_clock_init();
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra2l1/soc.c

@ -27,6 +27,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -27,6 +27,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -34,8 +39,14 @@ volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT; @@ -34,8 +39,14 @@ volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
*/
void soc_early_init_hook(void)
{
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4e1/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -59,4 +64,12 @@ void soc_early_init_hook(void) @@ -59,4 +64,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4e2/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -59,4 +64,12 @@ void soc_early_init_hook(void) @@ -59,4 +64,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4l1/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -59,4 +64,12 @@ void soc_early_init_hook(void) @@ -59,4 +64,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4m1/soc.c

@ -144,6 +144,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -144,6 +144,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -158,5 +163,13 @@ void soc_early_init_hook(void) @@ -158,5 +163,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
irq_unlock(key);
}

13
soc/renesas/ra/ra4m2/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -59,4 +64,12 @@ void soc_early_init_hook(void) @@ -59,4 +64,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4m3/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -59,4 +64,12 @@ void soc_early_init_hook(void) @@ -59,4 +64,12 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra4w1/soc.c

@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -26,6 +26,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -35,4 +40,12 @@ void soc_early_init_hook(void) @@ -35,4 +40,12 @@ void soc_early_init_hook(void)
{
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra6e1/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -63,5 +68,13 @@ void soc_early_init_hook(void) @@ -63,5 +68,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
irq_unlock(key);
}

13
soc/renesas/ra/ra6e2/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -63,5 +68,13 @@ void soc_early_init_hook(void) @@ -63,5 +68,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
irq_unlock(key);
}

13
soc/renesas/ra/ra6m1/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -39,5 +44,13 @@ void soc_early_init_hook(void) @@ -39,5 +44,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
irq_unlock(key);
}

13
soc/renesas/ra/ra6m2/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -39,5 +44,13 @@ void soc_early_init_hook(void) @@ -39,5 +44,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
irq_unlock(key);
}

13
soc/renesas/ra/ra6m3/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -39,5 +44,13 @@ void soc_early_init_hook(void) @@ -39,5 +44,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif
irq_unlock(key);
}

13
soc/renesas/ra/ra6m4/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -63,5 +68,13 @@ void soc_early_init_hook(void) @@ -63,5 +68,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif
irq_unlock(key);
}

13
soc/renesas/ra/ra6m5/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -63,5 +68,13 @@ void soc_early_init_hook(void) @@ -63,5 +68,13 @@ void soc_early_init_hook(void)
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif
irq_unlock(key);
}

13
soc/renesas/ra/ra8d1/soc.c

@ -29,6 +29,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -29,6 +29,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -61,4 +66,12 @@ void soc_early_init_hook(void) @@ -61,4 +66,12 @@ void soc_early_init_hook(void)
sys_cache_data_enable();
#endif
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra8m1/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -34,4 +39,12 @@ void soc_early_init_hook(void) @@ -34,4 +39,12 @@ void soc_early_init_hook(void)
{
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

13
soc/renesas/ra/ra8t1/soc.c

@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT; @@ -25,6 +25,11 @@ uint32_t SystemCoreClock BSP_SECTION_EARLY_INIT;
volatile uint32_t g_protect_pfswe_counter BSP_SECTION_EARLY_INIT;
#ifdef CONFIG_RUNTIME_NMI
extern bsp_grp_irq_cb_t g_bsp_group_irq_sources[];
extern void NMI_Handler(void);
#endif /* CONFIG_RUNTIME_NMI */
/**
* @brief Perform basic hardware initialization at boot.
*
@ -34,4 +39,12 @@ void soc_early_init_hook(void) @@ -34,4 +39,12 @@ void soc_early_init_hook(void)
{
SystemCoreClock = BSP_MOCO_HZ;
g_protect_pfswe_counter = 0;
#ifdef CONFIG_RUNTIME_NMI
for (uint32_t i = 0; i < 16; i++) {
g_bsp_group_irq_sources[i] = 0;
}
z_arm_nmi_set_handler(NMI_Handler);
#endif /* CONFIG_RUNTIME_NMI */
}

Loading…
Cancel
Save