]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7/bcm235xx/clk-bsc.c
2 * Copyright 2013 Broadcom Corporation.
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/sysmap.h>
11 #include <asm/kona-common/clk.h>
14 /* Enable appropriate clocks for a BSC/I2C port */
15 int clk_bsc_enable(void *base
)
18 char *bscstr
, *apbstr
;
21 case PMU_BSC_BASE_ADDR
:
22 /* PMU clock is always enabled */
26 apbstr
= "bsc1_apb_clk";
30 apbstr
= "bsc2_apb_clk";
34 apbstr
= "bsc3_apb_clk";
37 printf("%s: base 0x%p not found\n", __func__
, base
);
41 /* Note that the bus clock must be enabled first */
43 ret
= clk_get_and_enable(apbstr
);
47 ret
= clk_get_and_enable(bscstr
);