Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6.git] / sound / soc / tegra / tegra_asoc_utils.h
blob19fdcafed32f88eb266d34e7f21c51e5d889f729
1 /*
2 * tegra_asoc_utils.h - Definitions for Tegra DAS driver
4 * Author: Stephen Warren <swarren@nvidia.com>
5 * Copyright (C) 2010,2012 - NVIDIA, Inc.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19 * 02110-1301 USA
23 #ifndef __TEGRA_ASOC_UTILS_H__
24 #define __TEGRA_ASOC_UTILS_H_
26 struct clk;
27 struct device;
29 enum tegra_asoc_utils_soc {
30 TEGRA_ASOC_UTILS_SOC_TEGRA20,
31 TEGRA_ASOC_UTILS_SOC_TEGRA30,
32 TEGRA_ASOC_UTILS_SOC_TEGRA114,
35 struct tegra_asoc_utils_data {
36 struct device *dev;
37 enum tegra_asoc_utils_soc soc;
38 struct clk *clk_pll_a;
39 struct clk *clk_pll_a_out0;
40 struct clk *clk_cdev1;
41 int set_baseclock;
42 int set_mclk;
45 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
46 int mclk);
47 int tegra_asoc_utils_set_ac97_rate(struct tegra_asoc_utils_data *data);
48 int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
49 struct device *dev);
50 void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data);
52 #endif