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