X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fcm41xx%2Fcm41xx.c;h=d9dff4e1e5cf87eb22e517e481b6c2c8b683a7c2;hb=714afa64f3d81a660715b61785f1f3a3b986f852;hp=65eaa942c54c3a03484e50cae6b5143f3bd573ca;hpb=16b013e750345afdf73977be73eb046f2b476495;p=u-boot diff --git a/board/cm41xx/cm41xx.c b/board/cm41xx/cm41xx.c index 65eaa942c5..d9dff4e1e5 100644 --- a/board/cm41xx/cm41xx.c +++ b/board/cm41xx/cm41xx.c @@ -30,6 +30,9 @@ #include #include +#include + +DECLARE_GLOBAL_DATA_PTR; /* ------------------------------------------------------------------------- */ @@ -44,8 +47,8 @@ */ int env_flash_cmdline (void) { - unsigned char *sp = (unsigned char *) 0x0201c020; - unsigned char *ep; + char *sp = (char *) 0x0201c020; + char *ep; int len; /* Check if "erase" push button is depressed */ @@ -72,11 +75,13 @@ int board_late_init (void) return 0; } +int board_eth_init(bd_t *bis) +{ + return ks8695_eth_initialize(); +} int board_init (void) { - DECLARE_GLOBAL_DATA_PTR; - /* arch number of CM41xx */ gd->bd->bi_arch_number = 672; @@ -92,8 +97,6 @@ int board_init (void) int dram_init (void) { - DECLARE_GLOBAL_DATA_PTR; - gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;