AVR32: Make SDRAM refresh rate configurable
[platform/kernel/u-boot.git] / include / asm-avr32 / arch-at32ap700x / clk.h
index ea84c08..385319a 100644 (file)
@@ -75,4 +75,7 @@ static inline unsigned long get_mci_clk_rate(void)
 }
 #endif
 
+/* Board code may need the SDRAM base clock as a compile-time constant */
+#define SDRAMC_BUS_HZ  (MAIN_CLK_RATE >> CFG_CLKDIV_HSB)
+
 #endif /* __ASM_AVR32_ARCH_CLK_H__ */