diff mbox

[U-Boot] board/BuR/common: fix phy addresses

Message ID 1394085804-22243-1-git-send-email-oe5hpm@oevsv.at
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Hannes Schmelzer March 6, 2014, 6:03 a.m. UTC
B&R boards are using Phy Addresses 'one' and 'two', prior this was
defined through #define PHYADDR 1 within a header file.
Now this is addresses are given with device-driver structure.

Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
---
 board/BuR/common/common.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini March 6, 2014, 3:45 p.m. UTC | #1
On Thu, Mar 06, 2014 at 07:03:24AM +0100, Hannes Petermaier wrote:

> B&R boards are using Phy Addresses 'one' and 'two', prior this was
> defined through #define PHYADDR 1 within a header file.
> Now this is addresses are given with device-driver structure.
> 
> Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 04f3f1f..4c926ce 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -141,12 +141,12 @@  static struct cpsw_slave_data cpsw_slaves[] = {
 	{
 		.slave_reg_ofs	= 0x208,
 		.sliver_reg_ofs	= 0xd80,
-		.phy_addr	= 0,
+		.phy_addr	= 1,
 	},
 	{
 		.slave_reg_ofs	= 0x308,
 		.sliver_reg_ofs	= 0xdc0,
-		.phy_addr	= 1,
+		.phy_addr	= 2,
 	},
 };