Răsfoiți Sursa

board/BuR/common: fix phy addresses

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>
Hannes Petermaier 11 ani în urmă
părinte
comite
4b75fd5100
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      board/BuR/common/common.c

+ 2 - 2
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,
 	},
 };