uboot/arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0+
   2/*
   3 * Copyright 2014 Broadcom Corporation.
   4 */
   5
   6#include <common.h>
   7#include <linux/errno.h>
   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}
  27