]> git.sur5r.net Git - u-boot/blob - arch/arm/include/asm/arch-am33xx/clk_synthesizer.h
Merge branch 'master' of git://git.denx.de/u-boot-x86
[u-boot] / arch / arm / include / asm / arch-am33xx / clk_synthesizer.h
1 /*
2  * clk-synthesizer.h
3  *
4  * Clock synthesizer header
5  *
6  * Copyright (C) 2016, Texas Instruments, Incorporated - http://www.ti.com/
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11 #ifndef __CLK_SYNTHESIZER_H
12 #define __CLK_SYNTHESIZER_H
13
14 #include <common.h>
15
16 #define CLK_SYNTHESIZER_ID_REG          0x0
17 #define CLK_SYNTHESIZER_XCSEL           0x05
18 #define CLK_SYNTHESIZER_MUX_REG         0x14
19 #define CLK_SYNTHESIZER_PDIV2_REG       0x16
20 #define CLK_SYNTHESIZER_PDIV3_REG       0x17
21
22 #define CLK_SYNTHESIZER_BYTE_MODE       0x80
23
24 /**
25  * struct clk_synth: This structure holds data neeed for configuring
26  *                   for clock synthesizer.
27  * @id: The id of synthesizer
28  * @capacitor: value of the capacitor attached
29  * @mux: mux settings.
30  * @pdiv2: Div to be applied to second output
31  * @pdiv3: Div to be applied to third output
32  */
33 struct clk_synth {
34         u32 id;
35         u32 capacitor;
36         u32 mux;
37         u32 pdiv2;
38         u32 pdiv3;
39 };
40
41 int setup_clock_synthesizer(struct clk_synth *data);
42
43 #endif