提交 765ece8b 编写于 作者: B Bo Shen 提交者: Andreas Bießmann

ARM: atmel: sama5d4: add usb device initial code

Signed-off-by: NBo Shen <voice.shen@atmel.com>
上级 e05e46ed
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册