clk: tegra: add common infra for DT clocks
Introduce a common infrastructure for sharing clock initialization between SoCs. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
This commit is contained in:
@@ -568,6 +568,11 @@ struct tegra_clk_duplicate {
|
||||
}, \
|
||||
}
|
||||
|
||||
struct tegra_clk {
|
||||
int dt_id;
|
||||
bool present;
|
||||
};
|
||||
|
||||
void tegra_init_from_table(struct tegra_clk_init_table *tbl,
|
||||
struct clk *clks[], int clk_max);
|
||||
|
||||
@@ -577,6 +582,8 @@ void tegra_init_dup_clks(struct tegra_clk_duplicate *dup_list,
|
||||
struct tegra_clk_periph_regs *get_reg_bank(int clkid);
|
||||
struct clk **tegra_clk_init(int num, int periph_banks);
|
||||
|
||||
struct clk **tegra_lookup_dt_id(int clk_id, struct tegra_clk *tegra_clk);
|
||||
|
||||
void tegra_add_of_provider(struct device_node *np);
|
||||
|
||||
void tegra114_clock_tune_cpu_trimmers_high(void);
|
||||
|
Reference in New Issue
Block a user