From 319eb0c97af60a599e160a391917069b72920cb7 Mon Sep 17 00:00:00 2001 From: Khoa Nguyen Date: Mon, 29 Sep 2025 09:00:42 +0000 Subject: [PATCH] hal: renesas: ra: Update bsp_mcu_device_pn_cfg to get correct info Update bsp_mcu_device_pn_cfg.h to retrieve the correct hardware information for each part number Signed-off-by: Khoa Nguyen --- .../fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h | 12 ++++++++ .../fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h | 15 ++++++++-- .../fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h | 25 ++++++++++++++-- .../fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h | 29 +++++++++++++++++- .../fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h | 30 ++++++++++++++++++- .../fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h | 21 ++++++++++++- .../fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h | 7 ++++- .../fsp_cfg/bsp/ra6e1/bsp_mcu_device_pn_cfg.h | 18 ++++++++++- .../fsp_cfg/bsp/ra6e2/bsp_mcu_device_pn_cfg.h | 25 ++++++++++++++-- .../fsp_cfg/bsp/ra6m1/bsp_mcu_device_pn_cfg.h | 21 ++++++++++++- .../fsp_cfg/bsp/ra6m2/bsp_mcu_device_pn_cfg.h | 18 ++++++++++- .../fsp_cfg/bsp/ra6m3/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra6m4/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra6m5/bsp_mcu_device_pn_cfg.h | 24 ++++++++++++++- .../fsp_cfg/bsp/ra8d1/bsp_mcu_device_pn_cfg.h | 15 +++++++++- .../fsp_cfg/bsp/ra8m1/bsp_mcu_device_pn_cfg.h | 21 ++++++++++++- .../fsp_cfg/bsp/ra8p1/bsp_mcu_device_pn_cfg.h | 20 +++++++++++-- .../fsp_cfg/bsp/ra8t1/bsp_mcu_device_pn_cfg.h | 21 ++++++++++++- .../fsp_cfg/bsp/ra8t2/bsp_mcu_device_pn_cfg.h | 23 ++++++++++++-- 22 files changed, 438 insertions(+), 27 deletions(-) diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h index cc68fc85..df276f29 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ */ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (32768) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (64) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (32) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (36) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (40) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h index 61d0cdda..8ee4b6f3 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (32768) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (80) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_HWQFN +#define BSP_PACKAGE_PINS (48) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h index 6f988175..8996a44e 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h @@ -6,9 +6,21 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + #define BSP_MCU_FEATURE_SET ('B') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (98304) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP #define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h index f1e3eca2..85df0010 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h @@ -6,12 +6,21 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('0') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (131072) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#if defined(CONFIG_SOC_R7FA4E10D2CFM) +#define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP #define BSP_PACKAGE_PINS (64) -#elif defined(CONFIG_SOC_R7FA4E10D2CNE) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_QFN #define BSP_PACKAGE_PINS (48) +#else +#error "Invalid Package type" #endif -#define BSP_NUMBER_OF_CORES (1) + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h index 185ba485..d7b6ea6b 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h @@ -6,9 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('B') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (40960) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (64) -#define BSP_MCU_FEATURE_SET 'B' #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (32) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (36) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h index 436f391a..884f23d4 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h @@ -6,9 +6,36 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + #define BSP_MCU_FEATURE_SET ('B') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (65536) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 6) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 7) +#define BSP_PACKAGE_WLCSP +#define BSP_PACKAGE_PINS (72) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h index 95f0d16e..d2521217 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,36 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (32768) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LGA +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 6) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 7) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (40) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h index 95f0d16e..66d2a2c5 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,27 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (131072) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (48) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h index af74449b..59fcb036 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (131072) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (144) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h index 5dada1ad..e02d4e57 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,13 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (98304) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (56) #define BSP_NUMBER_OF_CORES (1) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (56) + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e1/bsp_mcu_device_pn_cfg.h index 95f0d16e..6796ad07 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,24 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('0') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (262144) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e2/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e2/bsp_mcu_device_pn_cfg.h index 185ba485..d7b6ea6b 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e2/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6e2/bsp_mcu_device_pn_cfg.h @@ -6,9 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('B') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (40960) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (64) -#define BSP_MCU_FEATURE_SET 'B' #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (48) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (32) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (36) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m1/bsp_mcu_device_pn_cfg.h index 95f0d16e..a1a0d9b9 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,27 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (262144) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (100) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LGA +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_QFN +#define BSP_PACKAGE_PINS (64) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m2/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m2/bsp_mcu_device_pn_cfg.h index af74449b..b204056d 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m2/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m2/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,24 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (393216) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (144) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LGA +#define BSP_PACKAGE_PINS (145) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m3/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m3/bsp_mcu_device_pn_cfg.h index 4d2a4a6f..c82f14dd 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m3/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m3/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (655360) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (176) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_BGA +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_LGA +#define BSP_PACKAGE_PINS (145) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m4/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m4/bsp_mcu_device_pn_cfg.h index af74449b..8c2fed74 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m4/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m4/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (262144) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (144) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (64) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m5/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m5/bsp_mcu_device_pn_cfg.h index 9c7c5463..cfdb76a5 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m5/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra6m5/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,30 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET (CONFIG_RENESAS_PN_FEATURE_SET) #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (524288) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (176) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_device_pn_cfg.h index a05fe5ef..b484eea8 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_device_pn_cfg.h @@ -5,8 +5,21 @@ */ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET (CONFIG_RENESAS_PN_FEATURE_SET) #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (917504) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (224) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (224) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (176) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_mcu_device_pn_cfg.h index a05fe5ef..7b8c5a14 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_mcu_device_pn_cfg.h @@ -5,8 +5,27 @@ */ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (917504) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (224) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (224) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8p1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8p1/bsp_mcu_device_pn_cfg.h index 11619849..27ba4bce 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8p1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8p1/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,24 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ -#define BSP_ROM_SIZE_BYTES (DT_REG_SIZE(DT_NODELABEL(code_mram_cm85)) + DT_REG_SIZE(DT_NODELABEL(code_mram_cm33))) + +#define BSP_MCU_FEATURE_SET (CONFIG_RENESAS_PN_FEATURE_SET) +#define BSP_ROM_SIZE_BYTES (CONFIG_RENESAS_PN_ROM_SIZE) +#define BSP_RAM_SIZE_BYTES (1916928) #define BSP_DATA_FLASH_SIZE_BYTES (0) -#define BSP_NUMBER_OF_CORES (2) +#define BSP_NUMBER_OF_CORES (CONFIG_RENESAS_PN_NUMBER_OF_CORES) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LFBGA +#define BSP_PACKAGE_PINS (224) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LFBGA #define BSP_PACKAGE_PINS (289) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LFBGA +#define BSP_PACKAGE_PINS (303) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_device_pn_cfg.h index a05fe5ef..7b8c5a14 100644 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_device_pn_cfg.h @@ -5,8 +5,27 @@ */ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ + +#define BSP_MCU_FEATURE_SET ('A') #define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0)) +#define BSP_RAM_SIZE_BYTES (917504) #define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1)) -#define BSP_PACKAGE_PINS (224) #define BSP_NUMBER_OF_CORES (1) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_FBGA +#define BSP_PACKAGE_PINS (224) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (176) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (144) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_LQFP +#define BSP_PACKAGE_PINS (100) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ diff --git a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t2/bsp_mcu_device_pn_cfg.h b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t2/bsp_mcu_device_pn_cfg.h index 210af4f9..ec6e8a82 100755 --- a/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t2/bsp_mcu_device_pn_cfg.h +++ b/zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t2/bsp_mcu_device_pn_cfg.h @@ -6,8 +6,27 @@ #ifndef BSP_MCU_DEVICE_PN_CFG_H_ #define BSP_MCU_DEVICE_PN_CFG_H_ -#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(code_mram_cm85)) + +#define BSP_MCU_FEATURE_SET (CONFIG_RENESAS_PN_FEATURE_SET) +#define BSP_ROM_SIZE_BYTES (CONFIG_RENESAS_PN_ROM_SIZE) +#define BSP_RAM_SIZE_BYTES (1916928) #define BSP_DATA_FLASH_SIZE_BYTES (0) -#define BSP_NUMBER_OF_CORES (2) +#define BSP_NUMBER_OF_CORES (CONFIG_RENESAS_PN_NUMBER_OF_CORES) + +#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1) +#define BSP_PACKAGE_LFBGA +#define BSP_PACKAGE_PINS (224) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2) +#define BSP_PACKAGE_LFBGA #define BSP_PACKAGE_PINS (289) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3) +#define BSP_PACKAGE_LFBGA +#define BSP_PACKAGE_PINS (303) +#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4) +#define BSP_PACKAGE_HLQFP +#define BSP_PACKAGE_PINS (176) +#else +#error "Invalid Package type" +#endif + #endif /* BSP_MCU_DEVICE_PN_CFG_H_ */