summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-14 19:17:15 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-22 12:34:55 +0100
commitcc67a0b6e5eb0a96743d2513ab6037bd13d183d5 (patch)
tree206620d09b5e6980385fbc0a62dbc77bb8a4d38d /arch/arm/include/asm/arch-sunxi/clock_sun6i.h
parent22b618346acb95dae8fddf151202829b6f78667f (diff)
downloadtalos-obmc-uboot-cc67a0b6e5eb0a96743d2513ab6037bd13d183d5.tar.gz
talos-obmc-uboot-cc67a0b6e5eb0a96743d2513ab6037bd13d183d5.zip
sunxi: Move clock_get_pllX / clock_set_pllX protos to mach specific headers
Which pll-s are available depends on the machine type, move the clock_get_pllX / clock_set_pllX prototypes to the clock_sun?i.h header files so that we only declare what is actually available. e.g. clock_get_pll5p() is not available on sun6i / sun8i, and with sun9i we get a completely different set of plls. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/clock_sun6i.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/clock_sun6i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
index 4711260c1e..e101c54051 100644
--- a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
+++ b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
@@ -320,6 +320,11 @@ struct sunxi_ccm_reg {
#define CCM_DE_CTRL_PLL10 (5 << 24)
#define CCM_DE_CTRL_GATE (1 << 31)
+#ifndef __ASSEMBLY__
+void clock_set_pll1(unsigned int hz);
+void clock_set_pll3(unsigned int hz);
void clock_set_pll5(unsigned int clk, bool sigma_delta_enable);
+unsigned int clock_get_pll6(void);
+#endif
#endif /* _SUNXI_CLOCK_SUN6I_H */
OpenPOWER on IntegriCloud