f



PowerPC U-Boot

i got some problem about PowerPC memory-map. and i describe it
following, forgive my poor English please....the MPU is MPC8313
as i know, we can use eTSEC interface to connect with PHY or switch
chip by MII, and we can communicate with PHY or switch chip by SMI
bus, but i found that the PHY was mapped in local bus memory in U-
Boot, why? we can control it by SMI bus, and why do we map it, and i
can not find any connection between PHY and local bus interface.

and the code in U-Boot is:

#define CFG_VSC7385_BASE	0xF0000000

#define CONFIG_VSC7385_ENET			/* VSC7385 ethernet support */
#define CFG_BR2_PRELIM		0xf0000801	/* VSC7385 Base address */
#define CFG_OR2_PRELIM		0xfffe09ff	/* VSC7385, 128K bytes*/
#define CFG_LBLAWBAR2_PRELIM	CFG_VSC7385_BASE/* Access window base at
VSC7385 base */
#define CFG_LBLAWAR2_PRELIM	0x80000010	/* Access window size 128K */
0
Daniel
2/5/2012 12:33:38 PM
comp.sys.powerpc.tech 819 articles. 1 followers. Post Follow

1 Replies
380 Views

Similar Articles

[PageSpeed] 56

On 2012-02-05, Daniel <shz.yuan@gmail.com> wrote:
> i got some problem about PowerPC memory-map. and i describe it
> following, forgive my poor English please....the MPU is MPC8313
> as i know, we can use eTSEC interface to connect with PHY or switch
> chip by MII, and we can communicate with PHY or switch chip by SMI
> bus, but i found that the PHY was mapped in local bus memory in U-
> Boot, why? we can control it by SMI bus, and why do we map it, and i
> can not find any connection between PHY and local bus interface.
>
> and the code in U-Boot is:
>
> #define CFG_VSC7385_BASE	0xF0000000
>
> #define CONFIG_VSC7385_ENET			/* VSC7385 ethernet support */
> #define CFG_BR2_PRELIM		0xf0000801	/* VSC7385 Base address */
> #define CFG_OR2_PRELIM		0xfffe09ff	/* VSC7385, 128K bytes*/
> #define CFG_LBLAWBAR2_PRELIM	CFG_VSC7385_BASE/* Access window base at
> VSC7385 base */
> #define CFG_LBLAWAR2_PRELIM	0x80000010	/* Access window size 128K */

The localbus interface is used to upload firmware into the switch.  It's not
a normal PHY.  As drivers/net/vsc7385.c points out, "Further details on the
register information can be obtained from Vitesse" -- with an NDA.

-Scott
0
Scott
2/9/2012 2:02:09 PM
Reply: