mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Stefan Bosch](/assets/img/avatar_default.png)
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - DM_VIDEO support (display_dev.h). - boot0.h added, handles NSIH --> tools/nexell obsolete. - gpio.h: Include-path to errno.h changed. Signed-off-by: Stefan Bosch <stefan_b@posteo.net>
25 lines
537 B
C
25 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* (C) Copyright 2016 Nexell
|
|
* Hyunseok, Jung <hsjung@nexell.co.kr>
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_ARCH_CLK_H_
|
|
#define __ASM_ARM_ARCH_CLK_H_
|
|
|
|
struct clk {
|
|
unsigned long rate;
|
|
};
|
|
|
|
void clk_init(void);
|
|
|
|
struct clk *clk_get(const char *id);
|
|
void clk_put(struct clk *clk);
|
|
unsigned long clk_get_rate(struct clk *clk);
|
|
long clk_round_rate(struct clk *clk, unsigned long rate);
|
|
int clk_set_rate(struct clk *clk, unsigned long rate);
|
|
int clk_enable(struct clk *clk);
|
|
void clk_disable(struct clk *clk);
|
|
|
|
#endif
|