2 * Copyright (C) 2014 Atmel
3 * Bo Shen <voice.shen@atmel.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/at91_common.h>
11 #include <asm/arch/clk.h>
12 #include <asm/arch/sama5_sfr.h>
13 #include <asm/arch/sama5d4.h>
17 unsigned int extension_id = get_extension_chip_id();
20 switch (extension_id) {
21 case ARCH_EXID_SAMA5D41:
23 case ARCH_EXID_SAMA5D42:
25 case ARCH_EXID_SAMA5D43:
27 case ARCH_EXID_SAMA5D44:
30 return "Unknown CPU type";
33 return "Unknown CPU type";
36 #ifdef CONFIG_USB_GADGET_ATMEL_USBA
37 void at91_udp_hw_init(void)
39 /* Enable UPLL clock */
40 at91_upll_clk_enable();
41 /* Enable UDPHS clock */
42 at91_periph_clk_enable(ATMEL_ID_UDPHS);