clk: tegra: Modify tegra_audio_clk_init to accept more plls
tegra_audio_clk_init was written expecting a single PLL to be passed in directly. Change this to accept an array which will allow for supporting multiple plls and specifying specific data about them, like their parent, which may change over time. Reviewed-by: Benson Leung <bleung@chromium.org> Signed-off-by: Rhyland Klein <rklein@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:

committed by
Thierry Reding

parent
db592c4e2b
commit
88d909bedf
@@ -270,6 +270,21 @@ struct tegra_clk_pll {
|
||||
|
||||
#define to_clk_pll(_hw) container_of(_hw, struct tegra_clk_pll, hw)
|
||||
|
||||
/**
|
||||
* struct tegra_audio_clk_info - Tegra Audio Clk Information
|
||||
*
|
||||
* @name: name for the audio pll
|
||||
* @pll_params: pll_params for audio pll
|
||||
* @clk_id: clk_ids for the audio pll
|
||||
* @parent: name of the parent of the audio pll
|
||||
*/
|
||||
struct tegra_audio_clk_info {
|
||||
char *name;
|
||||
struct tegra_clk_pll_params *pll_params;
|
||||
int clk_id;
|
||||
char *parent;
|
||||
};
|
||||
|
||||
extern const struct clk_ops tegra_clk_pll_ops;
|
||||
extern const struct clk_ops tegra_clk_plle_ops;
|
||||
struct clk *tegra_clk_register_pll(const char *name, const char *parent_name,
|
||||
@@ -622,7 +637,8 @@ void tegra_register_devclks(struct tegra_devclk *dev_clks, int num);
|
||||
|
||||
void tegra_audio_clk_init(void __iomem *clk_base,
|
||||
void __iomem *pmc_base, struct tegra_clk *tegra_clks,
|
||||
struct tegra_clk_pll_params *pll_params);
|
||||
struct tegra_audio_clk_info *audio_info,
|
||||
unsigned int num_plls);
|
||||
|
||||
void tegra_periph_clk_init(void __iomem *clk_base, void __iomem *pmc_base,
|
||||
struct tegra_clk *tegra_clks,
|
||||
|
Reference in New Issue
Block a user