]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-at91/armv7/sama5d4_devices.c
ARM: at91: armv7: clean up UTMI PLL handle code
[u-boot] / arch / arm / mach-at91 / armv7 / sama5d4_devices.c
index ce33cd4988885c76a8432cd683e95041828c6e0e..ebb779e473240b2b0ac6a106c1cae439798e2c02 100644 (file)
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/at91_common.h>
-#include <asm/arch/at91_pmc.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/sama5_sfr.h>
 #include <asm/arch/sama5d4.h>
@@ -37,10 +36,8 @@ char *get_cpu_name()
 #ifdef CONFIG_USB_GADGET_ATMEL_USBA
 void at91_udp_hw_init(void)
 {
-       struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
-
        /* Enable UPLL clock */
-       writel(AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr);
+       at91_upll_clk_enable();
        /* Enable UDPHS clock */
        at91_periph_clk_enable(ATMEL_ID_UDPHS);
 }