Skip to content

Commit 1ec8891

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: ra: Add support for dual mode selection
This commit is to add the configurations of DUALSEL register when use with dual bank mode on RA8D1 and RA8T1 Signed-off-by: Quy Tran <[email protected]>
1 parent f1f3506 commit 1ec8891

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_family_cfg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,12 @@
364364

365365
/* Dual Mode Select Register */
366366
#ifndef BSP_CFG_ROM_REG_DUALSEL
367+
#if CONFIG_DUAL_BANK_MODE
368+
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x0U))
369+
#else
367370
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x7U))
368371
#endif
372+
#endif
369373

370374
/* Block Protection Register 0 */
371375
#ifndef BSP_CFG_ROM_REG_BPS0

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_family_cfg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,12 @@
359359

360360
/* Dual Mode Select Register */
361361
#ifndef BSP_CFG_ROM_REG_DUALSEL
362+
#if CONFIG_DUAL_BANK_MODE
363+
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x0U))
364+
#else
362365
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x7U))
363366
#endif
367+
#endif
364368

365369
/* Block Protection Register 0 */
366370
#ifndef BSP_CFG_ROM_REG_BPS0

0 commit comments

Comments
 (0)