blob: 8a1d7c09dca537de63720233207f5744fbe3793e [file] [log] [blame]
Lars-Peter Clausencc526882011-06-27 17:04:01 +02001/*
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
Lars-Peter Clausen0c2d6962014-02-17 13:16:56 +010012#include <linux/regmap.h>
13
14struct device;
15
16extern const struct regmap_config adav80x_regmap_config;
17int adav80x_bus_probe(struct device *dev, struct regmap *regmap);
18
Lars-Peter Clausencc526882011-06-27 17:04:01 +020019enum adav80x_pll_src {
20 ADAV80X_PLL_SRC_XIN,
21 ADAV80X_PLL_SRC_XTAL,
22 ADAV80X_PLL_SRC_MCLKI,
23};
24
25enum adav80x_pll {
26 ADAV80X_PLL1 = 0,
27 ADAV80X_PLL2 = 1,
28};
29
30enum 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