]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/include/asm/arch-exynos/clk.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / include / asm / arch-exynos / clk.h
CommitLineData
008a351a
MK
1/*
2 * (C) Copyright 2010 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
008a351a
MK
6 */
7
8#ifndef __ASM_ARM_ARCH_CLK_H_
9#define __ASM_ARM_ARCH_CLK_H_
10
11#define APLL 0
12#define MPLL 1
13#define EPLL 2
14#define HPLL 3
15#define VPLL 4
10bc1a7f 16#define BPLL 5
008a351a 17
12a46a38
PV
18enum pll_src_bit {
19 EXYNOS_SRC_MPLL = 6,
20 EXYNOS_SRC_EPLL,
21 EXYNOS_SRC_VPLL,
22};
23
008a351a
MK
24unsigned long get_pll_clk(int pllreg);
25unsigned long get_arm_clk(void);
989feb8c 26unsigned long get_i2c_clk(void);
008a351a
MK
27unsigned long get_pwm_clk(void);
28unsigned long get_uart_clk(int dev_index);
c39e969e 29unsigned long get_mmc_clk(int dev_index);
68a8cbfa 30void set_mmc_clk(int dev_index, unsigned int div);
37835d4b
DL
31unsigned long get_lcd_clk(void);
32void set_lcd_clk(void);
33void set_mipi_clk(void);
2e206caa
RS
34void set_i2s_clk_source(void);
35int set_i2s_clk_prescaler(unsigned int src_frq, unsigned int dst_frq);
36int set_epll_clk(unsigned long rate);
b56b3042 37int set_spi_clk(int periph_id, unsigned int rate);
008a351a 38
12a46a38
PV
39/**
40 * get the clk frequency of the required peripheral
41 *
42 * @param peripheral Peripheral id
43 *
44 * @return frequency of the peripheral clk
45 */
46unsigned long clock_get_periph_rate(int peripheral);
47
008a351a 48#endif