X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cpu%2Fmpc512x%2Fcpu.c;h=d432d995a7ae7b11306e544d65935af3b26f5db1;hb=4615fc22e539a2f7dae971701c05f09e21c1ca25;hp=81bae41b9cfa3d0432b33d525d4621d56f3a7def;hpb=dedec4cfc88eeadac616d558f6104cbe2e0d46aa;p=oweals%2Fu-boot.git diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c index 81bae41b9c..d432d995a7 100644 --- a/cpu/mpc512x/cpu.c +++ b/cpu/mpc512x/cpu.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #if defined(CONFIG_OF_LIBFDT) @@ -166,9 +167,7 @@ static void old_ft_cpu_setup(void *blob, bd_t *bd) static void ft_clock_setup(void *blob, bd_t *bd) { - int node; char *cpu_path = "/cpus/" OF_CPU; - const char *path = NULL; /* * fixup cpu clocks using path @@ -193,7 +192,19 @@ void ft_cpu_setup(void *blob, bd_t *bd) #endif ft_clock_setup(blob, bd); #ifdef CONFIG_HAS_ETH0 - fdt_fixup_ethernet(blob, bd); + fdt_fixup_ethernet(blob); #endif } #endif + +#ifdef CONFIG_MPC512x_FEC +/* Default initializations for FEC controllers. To override, + * create a board-specific function called: + * int board_eth_init(bd_t *bis) + */ + +int cpu_eth_init(bd_t *bis) +{ + return mpc512x_fec_initialize(bis); +} +#endif