Thread (3 messages) read the whole thread 3 messages, 2 authors, 2004-07-13

Re: fix to enet.c to enable networking when booting from flash

From: Dan Malek <hidden>
Date: 2004-07-13 18:39:36

On Jul 13, 2004, at 1:34 PM, Robert P. J. Day wrote:
#if defined(CONFIG_RPXLITE) || defined(CONFIG_RPXCLASSIC) ||
defined(CONFIG_EP8xx) || defined(CONFIG_EP852)
        /* And while we are here, set the configuration to enable
ethernet.
        */
        *((volatile uint *)RPX_CSR_ADDR) &= ~BCSR0_ETHLPBK;
        *((volatile uint *)RPX_CSR_ADDR) |=
             (BCSR0_ETHEN | BCSR0_COLTESTDIS | BCSR0_FULLDPLXDIS);
quoted
       *((volatile uint *)RPX_CSR_ADDR) |=0x00100000;  <-- add this
//1:ethernet,0:SPI
#endif
In newer drivers, this would be done in a board specific file.  As you
can tell, this code enables the Ethernet PHY.  I don't understand
why that extra 'add this' is necessary.  That does some PCMCIA signal
routing to IP_B5, which should not have any effect on the Ethernet.

What revision of board is this?  I have RPXLite's that I boot from
flash all of the time without trouble.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
** This list is shutting down 7/24/2004.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help