Browse Source

feat(stm32mp1): add regulator framework compilation

Add required macro PLAT_NB_RDEVS in platform code, and update
platform.mk to compile regulator framework.

Change-Id: I9dc7a0a4c4f5a23d9bedda368d407612c9cd21cd
Signed-off-by: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
pull/1984/head
Yann Gautier 3 years ago
parent
commit
bba9fdee58
  1. 1
      plat/st/stm32mp1/platform.mk
  2. 6
      plat/st/stm32mp1/stm32mp1_def.h

1
plat/st/stm32mp1/platform.mk

@ -200,6 +200,7 @@ PLAT_BL_COMMON_SOURCES += drivers/arm/tzc/tzc400.c \
drivers/st/iwdg/stm32_iwdg.c \ drivers/st/iwdg/stm32_iwdg.c \
drivers/st/pmic/stm32mp_pmic.c \ drivers/st/pmic/stm32mp_pmic.c \
drivers/st/pmic/stpmic1.c \ drivers/st/pmic/stpmic1.c \
drivers/st/regulator/regulator_core.c \
drivers/st/reset/stm32mp1_reset.c \ drivers/st/reset/stm32mp1_reset.c \
plat/st/common/stm32mp_dt.c \ plat/st/common/stm32mp_dt.c \
plat/st/stm32mp1/stm32mp1_dbgmcu.c \ plat/st/stm32mp1/stm32mp1_dbgmcu.c \

6
plat/st/stm32mp1/stm32mp1_def.h

@ -460,6 +460,12 @@ static inline uint32_t tamp_bkpr(uint32_t idx)
#define STGEN_BASE U(0x5c008000) #define STGEN_BASE U(0x5c008000)
#define SYSCFG_BASE U(0x50020000) #define SYSCFG_BASE U(0x50020000)
/*******************************************************************************
* REGULATORS
******************************************************************************/
/* 3 PWR + 1 VREFBUF + 14 PMIC regulators + 1 FIXED */
#define PLAT_NB_RDEVS U(19)
/******************************************************************************* /*******************************************************************************
* Device Tree defines * Device Tree defines
******************************************************************************/ ******************************************************************************/

Loading…
Cancel
Save