mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
net: ti: cpsw: convert to use dev/ofnode api
Conver TI CPSW driver to use dev/ofnode api. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> [trini: Add <dm/ofnode.h> to provide the prototype to ofnode] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
committed by
Tom Rini
parent
da6a728ea4
commit
62f8e846a7
@@ -16,6 +16,8 @@
|
||||
#ifndef _CPSW_H_
|
||||
#define _CPSW_H_
|
||||
|
||||
#include <dm/ofnode.h>
|
||||
|
||||
/* reg offset */
|
||||
#define CPSW_HOST_PORT_OFFSET 0x108
|
||||
#define CPSW_SLAVE0_OFFSET 0x208
|
||||
@@ -38,7 +40,7 @@ struct cpsw_slave_data {
|
||||
u32 sliver_reg_ofs;
|
||||
int phy_addr;
|
||||
int phy_if;
|
||||
int phy_of_handle;
|
||||
ofnode phy_of_handle;
|
||||
int max_speed;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user