blob: cc5589adeaf6328a4af2c8d2755b9c020e24e1e4 [file] [log] [blame]
Stefan Bosch48397f12020-07-10 19:07:25 +02001/* SPDX-License-Identifier: GPL-2.0+
2 *
3 * (C) Copyright 2016 Nexell
4 * Hyunseok, Jung <hsjung@nexell.co.kr>
5 */
6
7#ifndef __ASM_ARM_ARCH_CLK_H_
8#define __ASM_ARM_ARCH_CLK_H_
9
10struct clk {
11 unsigned long rate;
12};
13
14void clk_init(void);
15
16struct clk *clk_get(const char *id);
17void clk_put(struct clk *clk);
18unsigned long clk_get_rate(struct clk *clk);
19long clk_round_rate(struct clk *clk, unsigned long rate);
20int clk_set_rate(struct clk *clk, unsigned long rate);
21int clk_enable(struct clk *clk);
22void clk_disable(struct clk *clk);
23
24#endif