]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc8260/speed.c
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
[u-boot] / cpu / mpc8260 / speed.c
index 360404f0cfd444807fe1a98a5c4d23f72fa948d9..38cd0d9a70fd0ecdcbc874aa25d95957bd405dcc 100644 (file)
 #include <mpc8260.h>
 #include <asm/processor.h>
 
+#if defined(CONFIG_BOARD_GET_CPU_CLK_F)
+extern unsigned long board_get_cpu_clk_f (void);
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 /* ------------------------------------------------------------------------- */
@@ -111,8 +115,12 @@ int get_clocks (void)
 
 #if !defined(CONFIG_8260_CLKIN)
 #error clock measuring not implemented yet - define CONFIG_8260_CLKIN
+#else
+#if defined(CONFIG_BOARD_GET_CPU_CLK_F)
+       clkin = board_get_cpu_clk_f ();
 #else
        clkin = CONFIG_8260_CLKIN;
+#endif
 #endif
 
        sccr = immap->im_clkrst.car_sccr;