Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi,
this is what i did in order to get my single Marvell to work: (It's been a while...) After that it just worked. I did verify the electronics so i stopped there. In alt_iniche_init.c: void SSSInitialTask(void *task_data) { INT8U error_code; INT32U x,tmp; //Print out the regs to see if it comms with any phy's for(x=0;x<0x320/4;x++) { tmp = IORD(TRIPLE_SPEED_ETHERNET_0_BASE,x); printf("Addr: %x, Dta: %x\n",x*4,tmp); } //Add profile alt_tse_phy_profile MV88E1116R = {"Marvell 88E1116R", // MV88E1111_OUI, // OUI 0x24, // Vender Model Number 0, // Model Revision Number 0x11, // Location of Status Register 14, // Location of Speed Status 13, // Location of Duplex Status 10, // Location of Link Status &marvell_phy_cfg // Function pointer to configure Marvell PHY }; alt_tse_phy_add_profile(&MV88E1116R); alt_tse_system_mac sys_mac = {TSE_SYSTEM_MAC(TRIPLE_SPEED_ETHERNET_0)}; alt_tse_system_sgdma sys_sgdma = {TSE_SYSTEM_SGDMA(SGDMA_ETH_TX, SGDMA_ETH_RX)}; alt_tse_system_desc_mem sys_mem = {TSE_SYSTEM_DESC_MEM(RAM_DESCRIPTOR)}; alt_tse_system_shared_fifo sys_sfifo = {TSE_SYSTEM_NO_SHARED_FIFO()}; alt_tse_system_phy sys_phy = {TSE_SYSTEM_PHY(1, NULL)}; alt_tse_system_add_sys(&sys_mac, &sys_sgdma, &sys_mem, &sys_sfifo, &sys_phy ); /* * Initialize Altera NicheStack TCP/IP Stack - Nios II Edition specific code. * NicheStack is initialized from a task, so that RTOS will have started, and * I/O drivers are available. Two tasks are created: * "Inet main" task with priority 2 * "clock tick" task with priority 3 */ alt_iniche_init(); netmain();