1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Clock synthesizer header
7 * Copyright (C) 2016, Texas Instruments, Incorporated - http://www.ti.com/
10 #ifndef __CLK_SYNTHESIZER_H
11 #define __CLK_SYNTHESIZER_H
13 #define CLK_SYNTHESIZER_ID_REG 0x0
14 #define CLK_SYNTHESIZER_XCSEL 0x05
15 #define CLK_SYNTHESIZER_MUX_REG 0x14
16 #define CLK_SYNTHESIZER_PDIV2_REG 0x16
17 #define CLK_SYNTHESIZER_PDIV3_REG 0x17
19 #define CLK_SYNTHESIZER_BYTE_MODE 0x80
22 * struct clk_synth: This structure holds data neeed for configuring
23 * for clock synthesizer.
24 * @id: The id of synthesizer
25 * @capacitor: value of the capacitor attached
27 * @pdiv2: Div to be applied to second output
28 * @pdiv3: Div to be applied to third output
38 int setup_clock_synthesizer(struct clk_synth *data);