]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/asm-avr32/arch-at32ap700x/clk.h
Add support for the hammerhead (AVR32) board
[karo-tx-uboot.git] / include / asm-avr32 / arch-at32ap700x / clk.h
index 385319aac758d1cce268c6e5d4cc5724cf8e6f41..e9a4fe4d649d1d04bc81159b1d982598d5799885 100644 (file)
@@ -58,7 +58,7 @@ static inline unsigned long get_usart_clk_rate(unsigned int dev_id)
        return get_pba_clk_rate();
 }
 #endif
-#ifdef AT32AP700x_CHIP_HAS_USART
+#ifdef AT32AP700x_CHIP_HAS_MACB
 static inline unsigned long get_macb_pclk_rate(unsigned int dev_id)
 {
        return get_pbb_clk_rate();
@@ -74,6 +74,15 @@ static inline unsigned long get_mci_clk_rate(void)
        return get_pbb_clk_rate();
 }
 #endif
+#ifdef AT32AP700x_CHIP_HAS_SPI
+static inline unsigned long get_spi_clk_rate(unsigned int dev_id)
+{
+       return get_pba_clk_rate();
+}
+#endif
+
+extern void clk_init(void);
+extern void gclk_init(void) __attribute__((weak));
 
 /* Board code may need the SDRAM base clock as a compile-time constant */
 #define SDRAMC_BUS_HZ  (MAIN_CLK_RATE >> CFG_CLKDIV_HSB)