Skip to content

Commit 319eb0c

Browse files
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 <[email protected]>
1 parent bc51c0b commit 319eb0c

22 files changed

+438
-27
lines changed

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_device_pn_cfg.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,30 @@
66
*/
77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (32768)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (64)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (64)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_LQFP
21+
#define BSP_PACKAGE_PINS (32)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_BGA
24+
#define BSP_PACKAGE_PINS (36)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_QFN
27+
#define BSP_PACKAGE_PINS (48)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_QFN
30+
#define BSP_PACKAGE_PINS (40)
31+
#else
32+
#error "Invalid Package type"
33+
#endif
34+
1335
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_device_pn_cfg.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,30 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (32768)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (100)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (100)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_LQFP
21+
#define BSP_PACKAGE_PINS (80)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_LQFP
24+
#define BSP_PACKAGE_PINS (64)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_LQFP
27+
#define BSP_PACKAGE_PINS (48)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_HWQFN
30+
#define BSP_PACKAGE_PINS (48)
31+
#else
32+
#error "Invalid Package type"
33+
#endif
34+
1335
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4c1/bsp_mcu_device_pn_cfg.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
910
#define BSP_MCU_FEATURE_SET ('B')
1011
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (98304)
1113
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (64)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_LQFP
1321
#define BSP_PACKAGE_PINS (100)
22+
#else
23+
#error "Invalid Package type"
24+
#endif
25+
1426
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_device_pn_cfg.h

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('0')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (131072)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#if defined(CONFIG_SOC_R7FA4E10D2CFM)
14+
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
1218
#define BSP_PACKAGE_PINS (64)
13-
#elif defined(CONFIG_SOC_R7FA4E10D2CNE)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_QFN
1421
#define BSP_PACKAGE_PINS (48)
22+
#else
23+
#error "Invalid Package type"
1524
#endif
16-
#define BSP_NUMBER_OF_CORES (1)
25+
1726
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_device_pn_cfg.h

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,30 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('B')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (40960)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (64)
12-
#define BSP_MCU_FEATURE_SET 'B'
1314
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (64)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_QFN
21+
#define BSP_PACKAGE_PINS (48)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_QFN
24+
#define BSP_PACKAGE_PINS (32)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_BGA
27+
#define BSP_PACKAGE_PINS (64)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_BGA
30+
#define BSP_PACKAGE_PINS (36)
31+
#else
32+
#error "Invalid Package type"
33+
#endif
34+
1435
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_device_pn_cfg.h

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,36 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
910
#define BSP_MCU_FEATURE_SET ('B')
1011
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (65536)
1113
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
12-
#define BSP_PACKAGE_PINS (100)
1314
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (48)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_LQFP
21+
#define BSP_PACKAGE_PINS (64)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_LQFP
24+
#define BSP_PACKAGE_PINS (100)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_QFN
27+
#define BSP_PACKAGE_PINS (48)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_BGA
30+
#define BSP_PACKAGE_PINS (64)
31+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 6)
32+
#define BSP_PACKAGE_BGA
33+
#define BSP_PACKAGE_PINS (100)
34+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 7)
35+
#define BSP_PACKAGE_WLCSP
36+
#define BSP_PACKAGE_PINS (72)
37+
#else
38+
#error "Invalid Package type"
39+
#endif
40+
1441
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_device_pn_cfg.h

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,36 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (32768)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (100)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_LQFP
18+
#define BSP_PACKAGE_PINS (100)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_LQFP
21+
#define BSP_PACKAGE_PINS (64)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_LQFP
24+
#define BSP_PACKAGE_PINS (48)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_LGA
27+
#define BSP_PACKAGE_PINS (100)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_QFN
30+
#define BSP_PACKAGE_PINS (64)
31+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 6)
32+
#define BSP_PACKAGE_QFN
33+
#define BSP_PACKAGE_PINS (48)
34+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 7)
35+
#define BSP_PACKAGE_QFN
36+
#define BSP_PACKAGE_PINS (40)
37+
#else
38+
#error "Invalid Package type"
39+
#endif
40+
1341
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_device_pn_cfg.h

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,27 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (131072)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (100)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_FBGA
18+
#define BSP_PACKAGE_PINS (48)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_FBGA
21+
#define BSP_PACKAGE_PINS (64)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_FBGA
24+
#define BSP_PACKAGE_PINS (100)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_LQFP
27+
#define BSP_PACKAGE_PINS (48)
28+
#else
29+
#error "Invalid Package type"
30+
#endif
31+
1332
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_device_pn_cfg.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,30 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (131072)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (144)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
16+
#if (CONFIG_RENESAS_PN_PACKAGE_TYPE == 1)
17+
#define BSP_PACKAGE_FBGA
18+
#define BSP_PACKAGE_PINS (144)
19+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 2)
20+
#define BSP_PACKAGE_FBGA
21+
#define BSP_PACKAGE_PINS (64)
22+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 3)
23+
#define BSP_PACKAGE_LQFP
24+
#define BSP_PACKAGE_PINS (144)
25+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 4)
26+
#define BSP_PACKAGE_LQFP
27+
#define BSP_PACKAGE_PINS (64)
28+
#elif (CONFIG_RENESAS_PN_PACKAGE_TYPE == 5)
29+
#define BSP_PACKAGE_LQFP
30+
#define BSP_PACKAGE_PINS (100)
31+
#else
32+
#error "Invalid Package type"
33+
#endif
34+
1335
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_device_pn_cfg.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66

77
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
88
#define BSP_MCU_DEVICE_PN_CFG_H_
9+
10+
#define BSP_MCU_FEATURE_SET ('A')
911
#define BSP_ROM_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash0))
12+
#define BSP_RAM_SIZE_BYTES (98304)
1013
#define BSP_DATA_FLASH_SIZE_BYTES DT_REG_SIZE(DT_NODELABEL(flash1))
11-
#define BSP_PACKAGE_PINS (56)
1214
#define BSP_NUMBER_OF_CORES (1)
15+
#define BSP_PACKAGE_QFN
16+
#define BSP_PACKAGE_PINS (56)
17+
1318
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

0 commit comments

Comments
 (0)