]> git.sur5r.net Git - u-boot/blobdiff - board/ti/dra7xx/evm.c
drivers: net: cpsw: add support to have phy address from cpsw platform data
[u-boot] / board / ti / dra7xx / evm.c
index 1b60b8f672eaa4ca7116365730996acad389d51c..7990e7990d41ef8d4b631bff61ec93ad6ba4f32a 100644 (file)
@@ -12,6 +12,7 @@
  */
 #include <common.h>
 #include <palmas.h>
+#include <sata.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
 #include <asm/arch/sata.h>
@@ -80,7 +81,7 @@ int board_init(void)
 
 int board_late_init(void)
 {
-       omap_sata_init();
+       init_sata(0);
        return 0;
 }
 
@@ -148,12 +149,12 @@ static struct cpsw_slave_data cpsw_slaves[] = {
        {
                .slave_reg_ofs  = 0x208,
                .sliver_reg_ofs = 0xd80,
-               .phy_id         = 0,
+               .phy_addr       = 2,
        },
        {
                .slave_reg_ofs  = 0x308,
                .sliver_reg_ofs = 0xdc0,
-               .phy_id         = 1,
+               .phy_addr       = 3,
        },
 };