1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * tegra_asoc_utils.h - Definitions for Tegra DAS driver
5 * Author: Stephen Warren <swarren@nvidia.com>
6 * Copyright (C) 2010,2012 - NVIDIA, Inc.
9 #ifndef __TEGRA_ASOC_UTILS_H__
10 #define __TEGRA_ASOC_UTILS_H__
15 enum tegra_asoc_utils_soc {
16 TEGRA_ASOC_UTILS_SOC_TEGRA20,
17 TEGRA_ASOC_UTILS_SOC_TEGRA30,
18 TEGRA_ASOC_UTILS_SOC_TEGRA114,
19 TEGRA_ASOC_UTILS_SOC_TEGRA124,
22 struct tegra_asoc_utils_data {
24 enum tegra_asoc_utils_soc soc;
25 struct clk *clk_pll_a;
26 struct clk *clk_pll_a_out0;
27 struct clk *clk_cdev1;
32 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
34 int tegra_asoc_utils_set_ac97_rate(struct tegra_asoc_utils_data *data);
35 int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,