]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / cpu / armv7 / bcm281xx / clk-usb-otg.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
4d013d8f
SR
2/*
3 * Copyright 2014 Broadcom Corporation.
4d013d8f
SR
4 */
5
6#include <common.h>
1221ce45 7#include <linux/errno.h>
4d013d8f
SR
8#include <asm/arch/sysmap.h>
9#include "clk-core.h"
10
11/* Enable appropriate clocks for the USB OTG port */
12int clk_usb_otg_enable(void *base)
13{
14 char *ahbstr;
15
16 switch ((u32) base) {
17 case HSOTG_BASE_ADDR:
18 ahbstr = "usb_otg_ahb_clk";
19 break;
20 default:
21 printf("%s: base 0x%p not found\n", __func__, base);
22 return -EINVAL;
23 }
24
25 return clk_get_and_enable(ahbstr);
26}