sunxi: video: Fix lvds panel support for sun6i+
[oweals/u-boot.git] / arch / arm / include / asm / arch-sunxi / clock.h
index 5669f392fab7a38e56558cc2f74ea5c903009b30..3e5d99908192e6b8e99fbada1835281006481fe2 100644 (file)
 #define CLK_GATE_CLOSE                 0x0
 
 /* clock control module regs definition */
+#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN8I)
+#include <asm/arch/clock_sun6i.h>
+#elif defined(CONFIG_MACH_SUN9I)
+#include <asm/arch/clock_sun9i.h>
+#else
 #include <asm/arch/clock_sun4i.h>
+#endif
 
 #ifndef __ASSEMBLY__
 int clock_init(void);
 int clock_twi_onoff(int port, int state);
-void clock_set_pll1(unsigned int hz);
-unsigned int clock_get_pll6(void);
+void clock_set_de_mod_clock(u32 *clk_cfg, unsigned int hz);
 void clock_init_safe(void);
 void clock_init_uart(void);
 #endif