[U-Boot] [PATCH 17/18] ARM: at91: clock: add function to get QSPI clocks

Cyrille Pitchen cyrille.pitchen at atmel.com
Tue Mar 15 19:12:39 CET 2016


Add the new get_qpsi_clk_rate() function which will be needed by the
future Atmel QSPI controller driver.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
---
 arch/arm/mach-at91/include/mach/clk.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-at91/include/mach/clk.h b/arch/arm/mach-at91/include/mach/clk.h
index 8577c74b47b7..aba7656e72f7 100644
--- a/arch/arm/mach-at91/include/mach/clk.h
+++ b/arch/arm/mach-at91/include/mach/clk.h
@@ -99,6 +99,11 @@ static inline unsigned long get_spi_clk_rate(unsigned int dev_id)
 		return get_mck_clk_rate();
 }
 
+static inline unsigned long get_qspi_clk_rate(unsigned int dev_id)
+{
+	return get_mck_clk_rate();
+}
+
 static inline unsigned long get_twi_clk_rate(unsigned int dev_id)
 {
 	if (get_h32mxdiv())
-- 
1.8.2.2



More information about the U-Boot mailing list