clk: clk_stm32f: Remove STMMAC clock setup
Thanks to 'commit ba1f966725
("net: designware: add clock support")'
we don't need anymore to setup the STMMAC clock in board.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
This commit is contained in:
parent
1e130558ab
commit
68a69ed2a4
@ -23,7 +23,6 @@ enum periph_id {
|
||||
enum periph_clock {
|
||||
SYSCFG_CLOCK_CFG,
|
||||
TIMER2_CLOCK_CFG,
|
||||
STMMAC_CLOCK_CFG,
|
||||
};
|
||||
|
||||
#endif /* __ASM_ARM_ARCH_PERIPH_H */
|
||||
|
@ -75,7 +75,6 @@ static int stmmac_setup(void)
|
||||
clock_setup(SYSCFG_CLOCK_CFG);
|
||||
/* Set >RMII mode */
|
||||
STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL;
|
||||
clock_setup(STMMAC_CLOCK_CFG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -90,7 +90,6 @@
|
||||
enum periph_clock {
|
||||
SYSCFG_CLOCK_CFG,
|
||||
TIMER2_CLOCK_CFG,
|
||||
STMMAC_CLOCK_CFG,
|
||||
};
|
||||
|
||||
static const struct stm32_clk_info stm32f4_clk_info = {
|
||||
@ -358,11 +357,6 @@ void clock_setup(int peripheral)
|
||||
case TIMER2_CLOCK_CFG:
|
||||
setbits_le32(&STM32_RCC->apb1enr, RCC_APB1ENR_TIM2EN);
|
||||
break;
|
||||
case STMMAC_CLOCK_CFG:
|
||||
setbits_le32(&STM32_RCC->ahb1enr, RCC_AHB1ENR_ETHMAC_EN);
|
||||
setbits_le32(&STM32_RCC->ahb1enr, RCC_AHB1ENR_ETHMAC_RX_EN);
|
||||
setbits_le32(&STM32_RCC->ahb1enr, RCC_AHB1ENR_ETHMAC_TX_EN);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user