X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Ftotal5200%2Ftotal5200.c;h=c1848fc5a11d6f3e8923fac6fc8e2df3e7f0f15d;hb=19403633dd70333893c2da7926a1d0dcd6dab7d8;hp=f32dadf5a2cc1900a89cf233d21932da4ffc0873;hpb=f2c2a937d8c4a44f63ff88bf82023e03a29497a2;p=u-boot diff --git a/board/total5200/total5200.c b/board/total5200/total5200.c index f32dadf5a2..c1848fc5a1 100644 --- a/board/total5200/total5200.c +++ b/board/total5200/total5200.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "sdram.h" @@ -36,7 +37,7 @@ #include "mt48lc16m16a2-75.h" #endif -long int initdram (int board_type) +phys_size_t initdram (int board_type) { sdram_conf_t sdram_conf; @@ -67,14 +68,14 @@ int checkboard (void) puts ("Board: Total5100 "); #endif -/* - * Retrieve FPGA Revision. - */ -printf ("(FPGA %08X)\n", *(vu_long *) (CFG_FPGA_BASE + 0x400)); + /* + * Retrieve FPGA Revision. + */ + printf ("(FPGA %08lX)\n", *(vu_long *) (CFG_FPGA_BASE + 0x400)); -/* - * Take all peripherals in power-up mode. - */ + /* + * Take all peripherals in power-up mode. + */ #if CONFIG_TOTAL5200_REV==2 *(vu_char *) (CFG_CPLD_BASE + 0x46) = 0x70; #else @@ -118,7 +119,7 @@ void init_ide_reset (void) { debug ("init_ide_reset\n"); - /* Configure IRDA_1 (PSC6_3) as GPIO output for ATA reset */ + /* Configure IRDA_1 (PSC6_3) as GPIO output for ATA reset */ *(vu_long *) MPC5XXX_GPIO_ENABLE |= GPIO_IRDA_1; *(vu_long *) MPC5XXX_GPIO_DIR |= GPIO_IRDA_1; } @@ -308,3 +309,8 @@ int board_get_height (void) } #endif /* CONFIG_VIDEO_SED13806 */ + +int board_eth_init(bd_t *bis) +{ + return pci_eth_init(bis); +}