Skip to content

Commit e97e756

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: Keep a backport for BSP_FEATURE_LPM_HAS_LDO_CONTROL
Keep a backport for BSP_FEATURE_LPM_HAS_LDO_CONTROL macro in r_lpm This will be remove in next FSP version. Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 57ee64f commit e97e756

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

drivers/ra/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,9 @@ Patch List:
143143
Impacted files:
144144
drivers/ra/fsp/src/bsp/mcu/all/bsp_clocks.c
145145
Note: This will be remove in next FSP version
146+
147+
* Keep a backport for BSP_FEATURE_LPM_HAS_LDO_CONTROL macro in r_lpm
148+
Impacted files:
149+
drivers/ra/fsp/inc/api/r_lpm_api.h
150+
drivers/ra/fsp/src/r_lpm/r_lpm.c
151+
Note: This will be remove in next FSP version.

drivers/ra/fsp/inc/api/r_lpm_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ typedef struct st_lpm_cfg
565565
lpm_ram_retention_t ram_retention_cfg;
566566
#endif
567567

568-
#if BSP_FEATURE_LPM_HAS_LDO_SKEEP
568+
#if BSP_FEATURE_LPM_HAS_LDO_CONTROL || BSP_FEATURE_LPM_HAS_LDO_SKEEP
569569

570570
/** Configure LDOs that are disabled in standby mode. */
571571
lpm_ldo_standby_cfg_t ldo_standby_cfg;

drivers/ra/fsp/src/r_lpm/r_lpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ fsp_err_t r_lpm_configure (lpm_cfg_t const * const p_cfg)
505505
uint32_t dpsbycr = 0;
506506
#endif
507507

508-
#if BSP_FEATURE_LPM_HAS_LDO_SKEEP
508+
#if BSP_FEATURE_LPM_HAS_LDO_CONTROL || BSP_FEATURE_LPM_HAS_LDO_SKEEP
509509
if ((R_SYSTEM->PLL1LDOCR_b.SKEEP != p_cfg->ldo_standby_cfg.pll1_ldo) ||
510510
(R_SYSTEM->PLL2LDOCR_b.SKEEP != p_cfg->ldo_standby_cfg.pll2_ldo) ||
511511
(R_SYSTEM->HOCOLDOCR_b.SKEEP != p_cfg->ldo_standby_cfg.hoco_ldo))
@@ -664,7 +664,7 @@ fsp_err_t r_lpm_configure (lpm_cfg_t const * const p_cfg)
664664
R_SYSTEM->PDRAMSCR0 = p_cfg->ram_retention_cfg.ram_retention;
665665
#endif
666666

667-
#if BSP_FEATURE_LPM_HAS_LDO_SKEEP
667+
#if BSP_FEATURE_LPM_HAS_LDO_CONTROL || BSP_FEATURE_LPM_HAS_LDO_SKEEP
668668

669669
/* PLL1LDOCR may only be written in High Speed Mode. If PLL1DOCR setting is not changed, then skip
670670
* writing to it. */

0 commit comments

Comments
 (0)