]> git.sur5r.net Git - u-boot/commit
drivers: net: cpsw: fix get mdio base and gmii_sel reg from DT
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 28 Apr 2016 10:06:06 +0000 (15:36 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 24 May 2016 16:42:02 +0000 (11:42 -0500)
commit66e740cbbdc54b5785046fffa52ed197602d74b1
tree2b4d6373d0867f1d273a937b898da32229098ccc
parent70c5b7b37e34099c428366bdaf266f472dc24377
drivers: net: cpsw: fix get mdio base and gmii_sel reg from DT

Since dra7x platforms address bus is define as 64 bits to support
LAPE, fdtdec_get_addr() returns a invalid address for mdio based
and gmii_sel register address. Fixing this by using
fdtdec_get_addr_size_auto_noparent() which will derive address
cell and size cell from its parent.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/cpsw.c