Fix chip/stm32_eth.c:3358:20: error: unused function 'stm32_selectrmii'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 13:22:34 +08:00 committed by Petro Karashchenko
parent 19138560f4
commit f28cfbf2f3
3 changed files with 6 additions and 0 deletions

View file

@ -3355,6 +3355,7 @@ static inline void stm32_selectmii(void)
*
****************************************************************************/
#ifdef CONFIG_STM32_RMII
static inline void stm32_selectrmii(void)
{
uint32_t regval;
@ -3369,6 +3370,7 @@ static inline void stm32_selectrmii(void)
putreg32(regval, STM32_SYSCFG_PMC);
#endif
}
#endif
/****************************************************************************
* Function: stm32_ethgpioconfig

View file

@ -3443,6 +3443,7 @@ static inline void stm32_selectmii(void)
*
****************************************************************************/
#ifdef CONFIG_STM32F7_RMII
static inline void stm32_selectrmii(void)
{
uint32_t regval;
@ -3451,6 +3452,7 @@ static inline void stm32_selectrmii(void)
regval |= SYSCFG_PMC_MII_RMII_SEL;
putreg32(regval, STM32_SYSCFG_PMC);
}
#endif
/****************************************************************************
* Function: stm32_ethgpioconfig

View file

@ -3616,6 +3616,7 @@ static inline void stm32_selectmii(void)
*
****************************************************************************/
#ifdef CONFIG_STM32H7_RMII
static inline void stm32_selectrmii(void)
{
uint32_t regval;
@ -3625,6 +3626,7 @@ static inline void stm32_selectrmii(void)
regval |= SYSCFG_PMC_EPIS_RMII;
putreg32(regval, STM32_SYSCFG_PMC);
}
#endif
/****************************************************************************
* Function: stm32_ethgpioconfig