]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/include/asm/kona-common/clk.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / include / asm / kona-common / clk.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
b3134fce
DR
2/*
3 * Copyright 2013 Broadcom Corporation.
b3134fce
DR
4 */
5
6/* This API file is loosely based on u-boot/drivers/video/ipu.h and linux */
7
8#ifndef __KONA_COMMON_CLK_H
9#define __KONA_COMMON_CLK_H
10
11#include <linux/types.h>
12
13struct clk;
14
15/* Only implement required functions for your specific architecture */
16int clk_init(void);
17struct clk *clk_get(const char *id);
18int clk_enable(struct clk *clk);
19void clk_disable(struct clk *clk);
20unsigned long clk_get_rate(struct clk *clk);
21long clk_round_rate(struct clk *clk, unsigned long rate);
22int clk_set_rate(struct clk *clk, unsigned long rate);
23int clk_set_parent(struct clk *clk, struct clk *parent);
24struct clk *clk_get_parent(struct clk *clk);
25int clk_sdio_enable(void *base, u32 rate, u32 *actual_ratep);
26int clk_bsc_enable(void *base);
4d013d8f 27int clk_usb_otg_enable(void *base);
b3134fce
DR
28
29#endif