[U-Boot] [PATCH] mpc85xx: add function prototypes for sys and ddr clocks to speed.c
Timur Tabi
timur at freescale.com
Fri May 21 20:07:34 CEST 2010
On most Freescale 85xx boards, the CONFIG_SYS_CLK_FREQ and CONFIG_DDR_CLK_FREQ
macros are defined like this:
This means that in order to use these macros, the callers must have prototypes
for the corresponding functions. On 85xx, only speed.c uses these macros, so
let's define the prototypes there. This eliminates the need to define the
prototypes in the board config files.
Signed-off-by: Timur Tabi <timur at freescale.com>
---
I'm posting the patch for review, and if everyone likes it, inclusion in the
85xx repo. Comments welcome.
arch/powerpc/cpu/mpc85xx/speed.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 8132115..724ce9d 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -31,6 +31,10 @@
#include <asm/processor.h>
#include <asm/io.h>
+/* Board-specific clock frequency functions. */
+unsigned long calculate_board_sys_clk(void);
+unsigned long calculate_board_ddr_clk(void);
+
DECLARE_GLOBAL_DATA_PTR;
/* --------------------------------------------------------------- */
--
1.6.5
More information about the U-Boot
mailing list