[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:40:28 CEST 2010


Timur Tabi wrote:

> Well, you'll have to convince Wolfgang of that, not me.  He won't accept my
> P1022DS board patch until I fix this "problem".

Actually, if you look at Kumar's ICS307 patch, you'll see he fixes this
problem for any board that uses the ICS307:

> -#ifndef __ASSEMBLY__
> -extern unsigned long calculate_board_sys_clk(unsigned long dummy);
> -extern unsigned long calculate_board_ddr_clk(unsigned long dummy);
> -/* extern unsigned long get_board_sys_clk(unsigned long dummy); */
> -/* extern unsigned long get_board_ddr_clk(unsigned long dummy); */
> -#endif
> -#define CONFIG_SYS_CLK_FREQ	calculate_board_sys_clk(0) /* sysclk for MPC85xx */
> -#define CONFIG_DDR_CLK_FREQ	calculate_board_ddr_clk(0) /* ddrclk for MPC85xx */
> +#define CONFIG_SYS_CLK_FREQ	get_board_sys_clk() /* sysclk for MPC85xx */
> +#define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk() /* ddrclk for MPC85xx */
>  #define CONFIG_ICS307_REFCLK_HZ	33333000  /* ICS307 clock chip ref freq */
> -#define CONFIG_GET_CLK_FROM_ICS307	  /* decode sysclk and ddrclk freq
> -					     from ICS307 instead of switches */

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list