1
0
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:
Grygorii Strashko
2019-09-19 11:16:42 +03:00
committed by Tom Rini
parent da6a728ea4
commit 62f8e846a7
2 changed files with 53 additions and 70 deletions

View File

@@ -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;
};