diff options
author | Tom Rini <trini@ti.com> | 2015-01-26 11:42:40 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-26 11:42:40 (GMT) |
commit | aed03faa064cca56847571b13cbd4c849c6116aa (patch) | |
tree | cb136b3bd51851e1fd107c16a5744c8a775df29f /arch/arm/cpu/armv7 | |
parent | 306df2c8241bd363c71a99841630fb5e85d81fae (diff) | |
parent | 52305a829cd927aca2eb4a15985c567e98f562b9 (diff) | |
download | u-boot-aed03faa064cca56847571b13cbd4c849c6116aa.tar.xz |
Merge branch 'master' of git://git.denx.de/u-boot-atmel
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/at91/sama5d4_devices.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/at91/sama5d4_devices.c b/arch/arm/cpu/armv7/at91/sama5d4_devices.c index 2708097..7469825 100644 --- a/arch/arm/cpu/armv7/at91/sama5d4_devices.c +++ b/arch/arm/cpu/armv7/at91/sama5d4_devices.c @@ -6,6 +6,10 @@ */ #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/sama5d4.h> char *get_cpu_name() @@ -28,3 +32,15 @@ char *get_cpu_name() else return "Unknown CPU type"; } + +#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); + /* Enable UDPHS clock */ + at91_periph_clk_enable(ATMEL_ID_UDPHS); +} +#endif |