public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] How do I use AM335x eth1 rather than eth0 ?
@ 2013-04-12 10:32 Mark Jackson
  2013-04-18 15:49 ` Bo Shen
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Jackson @ 2013-04-12 10:32 UTC (permalink / raw)
  To: u-boot

We have a dual Ethernet board (based on the BeagelBone) but with both Ethernet ports connected.

I'm wanting to use eth1 (rather than eth0), so in my board.c file, I changed:-

static struct cpsw_slave_data cpsw_slaves[] = {
	{
		.slave_reg_ofs	= 0x208,
		.sliver_reg_ofs	= 0xd80,
		.phy_id		= 0,
	},
	{
		.slave_reg_ofs	= 0x308,
		.sliver_reg_ofs	= 0xdc0,
		.phy_id		= 1,
	},
};

... to ...

static struct cpsw_slave_data cpsw_slaves[] = {
	{
		.slave_reg_ofs	= 0x308,
		.sliver_reg_ofs	= 0xdc0,
		.phy_id		= 1,
	},
	{
		.slave_reg_ofs	= 0x208,
		.sliver_reg_ofs	= 0xd80,
		.phy_id		= 0,
	},
};

... assuming that eth0 would now be ignored (as only 1 slave is configured).

But (eg) dhcp still only responds on eth0 !?!

What else do I have to change ?

Cheers
Mark J.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot] How do I use AM335x eth1 rather than eth0 ?
@ 2013-04-12 10:56 Mark Jackson
  2013-04-12 16:05 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Jackson @ 2013-04-12 10:56 UTC (permalink / raw)
  To: u-boot

We have a dual Ethernet board (based on the BeagelBone) but with both Ethernet ports connected.

I'm wanting to use eth1 (rather than eth0), so in my board.c file, I changed:-

static struct cpsw_slave_data cpsw_slaves[] = {
	{
		.slave_reg_ofs	= 0x208,
		.sliver_reg_ofs	= 0xd80,
		.phy_id		= 0,
	},
	{
		.slave_reg_ofs	= 0x308,
		.sliver_reg_ofs	= 0xdc0,
		.phy_id		= 1,
	},
};

... to ...

static struct cpsw_slave_data cpsw_slaves[] = {
	{
		.slave_reg_ofs	= 0x308,
		.sliver_reg_ofs	= 0xdc0,
		.phy_id		= 1,
	},
	{
		.slave_reg_ofs	= 0x208,
		.sliver_reg_ofs	= 0xd80,
		.phy_id		= 0,
	},
};

... assuming that eth0 would now be ignored (as only 1 slave is configured).

But (eg) dhcp still only responds on eth0 !?!

What else do I have to change ?

Cheers
Mark J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-20  1:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 10:32 [U-Boot] How do I use AM335x eth1 rather than eth0 ? Mark Jackson
2013-04-18 15:49 ` Bo Shen
2013-04-18 17:23   ` Wolfgang Denk
2013-04-20  1:03     ` Bo Shen
  -- strict thread matches above, loose matches on Subject: below --
2013-04-12 10:56 Mark Jackson
2013-04-12 16:05 ` Tom Rini
2013-04-12 19:20   ` Mark Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox