int board_eth_init(bd_t *bis) { int rc = 0; #ifdef CONFIG_SMC91111 rc += smc91111_initialize(0, CONFIG_SMC91111_BASE); #endif #ifdef CONFIG_DRIVER_DM9000 rc += dm9000_initialize(bis); #endif #ifdef CONFIG_ALTERA_TSE rc += altera_tse_initialize(0, CONFIG_SYS_ALTERA_TSE_MAC_BASE, CONFIG_SYS_ALTERA_TSE_SGDMA_RX_BASE, CONFIG_SYS_ALTERA_TSE_SGDMA_TX_BASE, #if defined(CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_BASE) && \ (CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_SIZE > 0) CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_BASE, CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_SIZE); #else 0, 0); #endif #endif #ifdef CONFIG_ETHOC rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE); #endif return rc; }
int init_soc(int soc_type) { switch(soc_type) { case MCIMX233: init_all_pins(); //base on board layout init_clock_power(); //init_dma(); serial_init(); //heading by serial_ means this function is from serial.c printf("INIT: \n<..uart..>\n"); printf("INIT: sdram...\n"); init_sdram(); //gpmi_init(); //heading by gpmi_ means this function is from gpmi.c printf("INIT: sd card...\n"); sd_init(); printf("INIT: dm9k...\n"); dm9000_initialize(); printf("INIT: tag-list...\n"); // init_taglist(0x40000000); printf("INIT: booting...\n"); break; } return 0; }
/* Modified by nietao for dm9000*/ int board_eth_init(bd_t *bis) { int rc = 0; #ifdef CONFIG_DRIVER_DM9000 rc = dm9000_initialize(bis); #endif return rc; }
int board_eth_init(bd_t *bis) { int rc = 0; #ifdef CONFIG_CS8900 rc = cs8900_initialize(0, CONFIG_CS8900_BASE); /*^@@+2@@<2>*/ #elif defined(CONFIG_DRIVER_DM9000) rc = dm9000_initialize(bis); /*$*/ #endif return rc; }
/*main*/ int main(int argc,char** argv) { int ret = 0; //swi_test(); clean_bss(); uart0_init(); init_led(); init_irq(); #ifdef _DEBUG /*register extern4*/ key_init(4,EXTINT); register_extern_int(EXTERNIRQ4,KeyINT2_Handle); //invoking timer0 initialize and enable timer0 handle register_interrupt(ISR_TIMER0_OFT,Timer0_Handle); timer0_init(); #endif ret = smdk2440_machine_init(); if(ret != 0) { goto tail; } ret = dm9000_initialize(); if(ret != 0) { printf("dm9000_initialize error.\n\t"); goto tail; } ret = eth_init(); if(ret != 0) { printf("eth_init error.\n\t"); goto tail; } wait(50000); test_dm9000(); wait(500000); test_dm9000(); //arp_test(); uip_exe(); tail: while(1); return 0; }
int board_eth_init(bd_t *bis) { int rc = 0; #ifdef CONFIG_DRIVER_DM9000 /*First, do power resest for DM9000*/ #ifdef SEP0611_ETH_EN GPIO_OUT_HIGH(SEP0611_ETH_EN); udelay(1000); #endif #ifdef SEP0611_ETH_RST_ GPIO_OUT_HIGH(SEP0611_ETH_RST_); udelay(10000); GPIO_OUT_LOW(SEP0611_ETH_RST_); udelay(10000); GPIO_OUT_HIGH(SEP0611_ETH_RST_); #endif rc = dm9000_initialize(bis); return rc; }
int board_eth_init(bd_t *bis) { return dm9000_initialize(bis); }
int board_eth_init(bd_t *bis) { lp8x4x_eth1_mac_init(); return dm9000_initialize(bis); }