Skip to content

Commit

Permalink
hal: renesas: ra: Add support for dual mode selection
Browse files Browse the repository at this point in the history
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 <quy.tran.pz@renesas.com>
  • Loading branch information
quytranpzz authored and KhiemNguyenT committed Aug 20, 2024
1 parent f1f3506 commit 1ec8891
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8d1/bsp_mcu_family_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,12 @@

/* Dual Mode Select Register */
#ifndef BSP_CFG_ROM_REG_DUALSEL
#if CONFIG_DUAL_BANK_MODE
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x0U))
#else
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x7U))
#endif
#endif

/* Block Protection Register 0 */
#ifndef BSP_CFG_ROM_REG_BPS0
Expand Down
4 changes: 4 additions & 0 deletions zephyr/ra/ra_cfg/fsp_cfg/bsp/ra8t1/bsp_mcu_family_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,12 @@

/* Dual Mode Select Register */
#ifndef BSP_CFG_ROM_REG_DUALSEL
#if CONFIG_DUAL_BANK_MODE
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x0U))
#else
#define BSP_CFG_ROM_REG_DUALSEL (0xFFFFFFF8U | (0x7U))
#endif
#endif

/* Block Protection Register 0 */
#ifndef BSP_CFG_ROM_REG_BPS0
Expand Down

0 comments on commit 1ec8891

Please sign in to comment.