1 /* 2 * Copyright 2014 Broadcom Corporation. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #include <common.h> 8 #include <asm/errno.h> 9 #include <asm/arch/sysmap.h> 10 #include "clk-core.h" 11 12 /* Enable appropriate clocks for the USB OTG port */ 13 int clk_usb_otg_enable(void *base) 14 { 15 char *ahbstr; 16 17 switch ((u32) base) { 18 case HSOTG_BASE_ADDR: 19 ahbstr = "usb_otg_ahb_clk"; 20 break; 21 default: 22 printf("%s: base 0x%p not found\n", __func__, base); 23 return -EINVAL; 24 } 25 26 return clk_get_and_enable(ahbstr); 27 } 28