xref: /openbmc/linux/sound/soc/codecs/adav80x.h (revision d6fc9fcb)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * header file for ADAV80X parts
4  *
5  * Copyright 2011 Analog Devices Inc.
6  */
7 
8 #ifndef _ADAV80X_H
9 #define _ADAV80X_H
10 
11 #include <linux/regmap.h>
12 
13 struct device;
14 
15 extern const struct regmap_config adav80x_regmap_config;
16 int adav80x_bus_probe(struct device *dev, struct regmap *regmap);
17 
18 enum adav80x_pll_src {
19 	ADAV80X_PLL_SRC_XIN,
20 	ADAV80X_PLL_SRC_XTAL,
21 	ADAV80X_PLL_SRC_MCLKI,
22 };
23 
24 enum adav80x_pll {
25 	ADAV80X_PLL1 = 0,
26 	ADAV80X_PLL2 = 1,
27 };
28 
29 enum adav80x_clk_src {
30 	ADAV80X_CLK_XIN = 0,
31 	ADAV80X_CLK_MCLKI = 1,
32 	ADAV80X_CLK_PLL1 = 2,
33 	ADAV80X_CLK_PLL2 = 3,
34 	ADAV80X_CLK_XTAL = 6,
35 
36 	ADAV80X_CLK_SYSCLK1 = 6,
37 	ADAV80X_CLK_SYSCLK2 = 7,
38 	ADAV80X_CLK_SYSCLK3 = 8,
39 };
40 
41 #endif
42