diff options
author | Thierry Reding <treding@nvidia.com> | 2017-08-30 13:11:53 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-10-19 17:38:40 +0300 |
commit | 8be95190dac73a8b6bfc51a7c3ad6ec3d0a4d5f7 (patch) | |
tree | 2388fdd933ad5a7d38115df6beefda0fdd37e0a0 /drivers/clk/tegra/clk.h | |
parent | 231ca2e583be324012212d10ad913f30c2f66adb (diff) | |
download | linux-8be95190dac73a8b6bfc51a7c3ad6ec3d0a4d5f7.tar.xz |
clk: tegra: Add peripheral clock registration helper
There is a common pattern that registers individual peripheral clocks
from an initialization table. Add a common implementation to remove the
duplication from various call sites.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk.h')
-rw-r--r-- | drivers/clk/tegra/clk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk.h b/drivers/clk/tegra/clk.h index 872f1189ad7f..3b2763df51c2 100644 --- a/drivers/clk/tegra/clk.h +++ b/drivers/clk/tegra/clk.h @@ -662,6 +662,9 @@ struct tegra_periph_init_data { _clk_num, _gate_flags, _clk_id,\ NULL, 0, NULL) +struct clk *tegra_clk_register_periph_data(void __iomem *clk_base, + struct tegra_periph_init_data *init); + /** * struct clk_super_mux - super clock * |