X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fcpsw.h;h=257d12a08d721eef149a31b466306cc2465774d6;hb=08e64cece2f8e793b5c085ebf27c27dfc5ed730d;hp=547b40c57bbf342ea19ab059cebc7bbec5586ec1;hpb=362f16b1e9e94024a511adae9977d145ef942b50;p=u-boot diff --git a/include/cpsw.h b/include/cpsw.h index 547b40c57b..257d12a08d 100644 --- a/include/cpsw.h +++ b/include/cpsw.h @@ -21,6 +21,7 @@ struct cpsw_slave_data { u32 sliver_reg_ofs; int phy_addr; int phy_if; + int phy_of_handle; }; enum { @@ -31,6 +32,8 @@ enum { struct cpsw_platform_data { u32 mdio_base; u32 cpsw_base; + u32 mac_id; + u32 gmii_sel; int mdio_div; int channels; /* number of cpdma channels (symmetric) */ u32 cpdma_reg_ofs; /* cpdma register offset */ @@ -49,5 +52,6 @@ struct cpsw_platform_data { }; int cpsw_register(struct cpsw_platform_data *data); +int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr); #endif /* _CPSW_H_ */