Fix chip/stm32_sdio.c:749:24: error: unused function 'stm32_getpwrctrl' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
09da04d7d2
commit
5d7f1d5020
@ -387,7 +387,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
|
|||||||
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
||||||
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
||||||
static void stm32_setpwrctrl(uint32_t pwrctrl);
|
static void stm32_setpwrctrl(uint32_t pwrctrl);
|
||||||
static inline uint32_t stm32_getpwrctrl(void);
|
|
||||||
|
|
||||||
/* DMA Helpers **************************************************************/
|
/* DMA Helpers **************************************************************/
|
||||||
|
|
||||||
@ -730,27 +729,6 @@ static void stm32_setpwrctrl(uint32_t pwrctrl)
|
|||||||
putreg32(regval, STM32_SDIO_POWER);
|
putreg32(regval, STM32_SDIO_POWER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: stm32_getpwrctrl
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Return the current value of the the PWRCTRL field of the SDIO POWER
|
|
||||||
* register. This function can be used to see if the SDIO is powered ON
|
|
||||||
* or OFF
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* None
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* The current value of the the PWRCTRL field of the SDIO POWER register.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static inline uint32_t stm32_getpwrctrl(void)
|
|
||||||
{
|
|
||||||
return getreg32(STM32_SDIO_POWER) & SDIO_POWER_PWRCTRL_MASK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_sampleinit
|
* Name: stm32_sampleinit
|
||||||
*
|
*
|
||||||
|
@ -468,7 +468,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
|
|||||||
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
||||||
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
||||||
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
|
|
||||||
|
|
||||||
/* DMA Helpers **************************************************************/
|
/* DMA Helpers **************************************************************/
|
||||||
|
|
||||||
@ -943,28 +942,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
|
|||||||
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: stm32_getpwrctrl
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Return the current value of the the PWRCTRL field of the SDIO POWER
|
|
||||||
* register. This function can be used to see if the SDIO is powered ON
|
|
||||||
* or OFF
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* priv - Instance of the SDMMC private state structure.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* The current value of the the PWRCTRL field of the SDIO POWER register.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
|
|
||||||
{
|
|
||||||
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
|
|
||||||
STM32_SDMMC_POWER_PWRCTRL_MASK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_sampleinit
|
* Name: stm32_sampleinit
|
||||||
*
|
*
|
||||||
|
@ -429,7 +429,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
|
|||||||
sdio_eventset_t wkupevents);
|
sdio_eventset_t wkupevents);
|
||||||
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
||||||
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
|
|
||||||
|
|
||||||
/* Debug Helpers ************************************************************/
|
/* Debug Helpers ************************************************************/
|
||||||
|
|
||||||
@ -888,28 +887,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
|
|||||||
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: stm32_getpwrctrl
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Return the current value of the the PWRCTRL field of the SDIO POWER
|
|
||||||
* register. This function can be used to see if the SDIO is powered ON
|
|
||||||
* or OFF
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* priv - Instance of the SDMMC private state structure.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* The current value of the the PWRCTRL field of the SDIO POWER register.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
|
|
||||||
{
|
|
||||||
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
|
|
||||||
STM32_SDMMC_POWER_PWRCTRL_MASK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_sampleinit
|
* Name: stm32_sampleinit
|
||||||
*
|
*
|
||||||
|
@ -395,7 +395,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
|
|||||||
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
|
||||||
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
|
||||||
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
|
|
||||||
|
|
||||||
/* DMA Helpers **************************************************************/
|
/* DMA Helpers **************************************************************/
|
||||||
|
|
||||||
@ -836,28 +835,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
|
|||||||
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: stm32_getpwrctrl
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Return the current value of the the PWRCTRL field of the SDIO POWER
|
|
||||||
* register. This function can be used to see if the SDIO is powered ON
|
|
||||||
* or OFF
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* priv - Instance of the SDMMC private state structure.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* The current value of the the PWRCTRL field of the SDIO POWER register.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
|
|
||||||
{
|
|
||||||
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
|
|
||||||
STM32_SDMMC_POWER_PWRCTRL_MASK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_sampleinit
|
* Name: stm32_sampleinit
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user