summaryrefslogtreecommitdiff
path: root/include/asm-avr32/arch-at32ap700x/clk.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-avr32/arch-at32ap700x/clk.h')
-rw-r--r--include/asm-avr32/arch-at32ap700x/clk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap700x/clk.h b/include/asm-avr32/arch-at32ap700x/clk.h
index 4a1dd33..a9d8431 100644
--- a/include/asm-avr32/arch-at32ap700x/clk.h
+++ b/include/asm-avr32/arch-at32ap700x/clk.h
@@ -74,6 +74,12 @@ 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);