/* * We need some access into the SMC9196 registers. Define those registers * we will need here (including the smc91x.h doesn't seem to give us these * in a simple form).
*/ #define SMC91xx_BANKSELECT 14 #define SMC91xx_BASEADDR 2 #define SMC91xx_BASEMAC 4
/* * Set flash contained MAC address into SMC9196 core. Make sure the flash * MAC address is sane, and not an empty flash. If no good use the Moreton * Bay default MAC address instead.
*/
/* * Re-map the address space of at least one of the SMC ethernet * parts. Both parts power up decoding the same address, so we * need to move one of them first, before doing anything else.
*/
/* Set correct chip select timing for SMC9196 accesses */
writew(0x1180, MCFSIM_CSCR3);
/* Set the SMC interrupts to be auto-vectored */
mcf_autovector(NETTEL_SMC0_IRQ);
mcf_autovector(NETTEL_SMC1_IRQ);
/* Set MAC addresses from flash for both interfaces */
nettel_smc91x_setmac(NETTEL_SMC0_ADDR, 0xf0006000);
nettel_smc91x_setmac(NETTEL_SMC1_ADDR, 0xf0006006);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.