]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: clk_stm32f: Remove STMMAC clock setup
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 18 Jan 2018 13:10:04 +0000 (14:10 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:15 +0000 (09:39 -0500)
Thanks to 'commit ba1f96672522 ("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>
arch/arm/include/asm/arch-stm32f7/stm32_periph.h
board/st/stm32f746-disco/stm32f746-disco.c
drivers/clk/clk_stm32f.c

index ae0faef353d7d5efa8865fca5650bded421b3e13..13f9c9be1cb16b6bc2551f89f1a5581cbe10e1a5 100644 (file)
@@ -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 */
index 2e8aa86e8177ae8912d401a67b360772254093c6..58a5ef04c4cc87690775add383d5b7af21a06dc8 100644 (file)
@@ -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;
 }
index ebe1ce60c1969e1804f5165cd49d09f0f2ac977e..2187be8cc8d9353e48549123012486025c61dc95 100644 (file)
@@ -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;
        }