1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014 Atmel
4 * Bo Shen <voice.shen@atmel.com>
9 #include <asm/arch/at91_common.h>
10 #include <asm/arch/clk.h>
11 #include <asm/arch/at91_sfr.h>
12 #include <asm/arch/sama5d4.h>
16 unsigned int extension_id = get_extension_chip_id();
19 switch (extension_id) {
20 case ARCH_EXID_SAMA5D41:
22 case ARCH_EXID_SAMA5D42:
24 case ARCH_EXID_SAMA5D43:
26 case ARCH_EXID_SAMA5D44:
29 return "Unknown CPU type";
32 return "Unknown CPU type";
35 #ifdef CONFIG_USB_GADGET_ATMEL_USBA
36 void at91_udp_hw_init(void)
38 /* Enable UPLL clock */
39 at91_upll_clk_enable();
40 /* Enable UDPHS clock */
41 at91_periph_clk_enable(ATMEL_ID_UDPHS);