diff options
Diffstat (limited to 'drivers/clk/tegra/clk-pll.c')
-rw-r--r-- | drivers/clk/tegra/clk-pll.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index c7c6d8fb32fb..bfef9abdf232 100644 --- a/drivers/clk/tegra/clk-pll.c +++ b/drivers/clk/tegra/clk-pll.c | |||
@@ -816,7 +816,9 @@ const struct clk_ops tegra_clk_plle_ops = { | |||
816 | .enable = clk_plle_enable, | 816 | .enable = clk_plle_enable, |
817 | }; | 817 | }; |
818 | 818 | ||
819 | #if defined(CONFIG_ARCH_TEGRA_114_SOC) || defined(CONFIG_ARCH_TEGRA_124_SOC) | 819 | #if defined(CONFIG_ARCH_TEGRA_114_SOC) || \ |
820 | defined(CONFIG_ARCH_TEGRA_124_SOC) || \ | ||
821 | defined(CONFIG_ARCH_TEGRA_132_SOC) | ||
820 | 822 | ||
821 | static int _pll_fixed_mdiv(struct tegra_clk_pll_params *pll_params, | 823 | static int _pll_fixed_mdiv(struct tegra_clk_pll_params *pll_params, |
822 | unsigned long parent_rate) | 824 | unsigned long parent_rate) |
@@ -1505,7 +1507,9 @@ struct clk *tegra_clk_register_plle(const char *name, const char *parent_name, | |||
1505 | return clk; | 1507 | return clk; |
1506 | } | 1508 | } |
1507 | 1509 | ||
1508 | #if defined(CONFIG_ARCH_TEGRA_114_SOC) || defined(CONFIG_ARCH_TEGRA_124_SOC) | 1510 | #if defined(CONFIG_ARCH_TEGRA_114_SOC) || \ |
1511 | defined(CONFIG_ARCH_TEGRA_124_SOC) || \ | ||
1512 | defined(CONFIG_ARCH_TEGRA_132_SOC) | ||
1509 | static const struct clk_ops tegra_clk_pllxc_ops = { | 1513 | static const struct clk_ops tegra_clk_pllxc_ops = { |
1510 | .is_enabled = clk_pll_is_enabled, | 1514 | .is_enabled = clk_pll_is_enabled, |
1511 | .enable = clk_pll_iddq_enable, | 1515 | .enable = clk_pll_iddq_enable, |
@@ -1565,7 +1569,7 @@ struct clk *tegra_clk_register_pllxc(const char *name, const char *parent_name, | |||
1565 | parent = __clk_lookup(parent_name); | 1569 | parent = __clk_lookup(parent_name); |
1566 | if (!parent) { | 1570 | if (!parent) { |
1567 | WARN(1, "parent clk %s of %s must be registered first\n", | 1571 | WARN(1, "parent clk %s of %s must be registered first\n", |
1568 | name, parent_name); | 1572 | parent_name, name); |
1569 | return ERR_PTR(-EINVAL); | 1573 | return ERR_PTR(-EINVAL); |
1570 | } | 1574 | } |
1571 | 1575 | ||
@@ -1665,7 +1669,7 @@ struct clk *tegra_clk_register_pllm(const char *name, const char *parent_name, | |||
1665 | parent = __clk_lookup(parent_name); | 1669 | parent = __clk_lookup(parent_name); |
1666 | if (!parent) { | 1670 | if (!parent) { |
1667 | WARN(1, "parent clk %s of %s must be registered first\n", | 1671 | WARN(1, "parent clk %s of %s must be registered first\n", |
1668 | name, parent_name); | 1672 | parent_name, name); |
1669 | return ERR_PTR(-EINVAL); | 1673 | return ERR_PTR(-EINVAL); |
1670 | } | 1674 | } |
1671 | 1675 | ||
@@ -1706,7 +1710,7 @@ struct clk *tegra_clk_register_pllc(const char *name, const char *parent_name, | |||
1706 | parent = __clk_lookup(parent_name); | 1710 | parent = __clk_lookup(parent_name); |
1707 | if (!parent) { | 1711 | if (!parent) { |
1708 | WARN(1, "parent clk %s of %s must be registered first\n", | 1712 | WARN(1, "parent clk %s of %s must be registered first\n", |
1709 | name, parent_name); | 1713 | parent_name, name); |
1710 | return ERR_PTR(-EINVAL); | 1714 | return ERR_PTR(-EINVAL); |
1711 | } | 1715 | } |
1712 | 1716 | ||
@@ -1802,7 +1806,7 @@ struct clk *tegra_clk_register_plle_tegra114(const char *name, | |||
1802 | } | 1806 | } |
1803 | #endif | 1807 | #endif |
1804 | 1808 | ||
1805 | #ifdef CONFIG_ARCH_TEGRA_124_SOC | 1809 | #if defined(CONFIG_ARCH_TEGRA_124_SOC) || defined(CONFIG_ARCH_TEGRA_132_SOC) |
1806 | static const struct clk_ops tegra_clk_pllss_ops = { | 1810 | static const struct clk_ops tegra_clk_pllss_ops = { |
1807 | .is_enabled = clk_pll_is_enabled, | 1811 | .is_enabled = clk_pll_is_enabled, |
1808 | .enable = clk_pll_iddq_enable, | 1812 | .enable = clk_pll_iddq_enable, |
@@ -1830,7 +1834,7 @@ struct clk *tegra_clk_register_pllss(const char *name, const char *parent_name, | |||
1830 | parent = __clk_lookup(parent_name); | 1834 | parent = __clk_lookup(parent_name); |
1831 | if (!parent) { | 1835 | if (!parent) { |
1832 | WARN(1, "parent clk %s of %s must be registered first\n", | 1836 | WARN(1, "parent clk %s of %s must be registered first\n", |
1833 | name, parent_name); | 1837 | parent_name, name); |
1834 | return ERR_PTR(-EINVAL); | 1838 | return ERR_PTR(-EINVAL); |
1835 | } | 1839 | } |
1836 | 1840 | ||