net: Drop dm.h header file from phy.h

This header file should not be included in other header files. Remove it
and use other headers and C inclusions instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2020-07-19 10:15:39 -06:00 committed by Tom Rini
parent c2848cc2c3
commit 2a64ada78c
6 changed files with 12 additions and 3 deletions

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <miiphy.h>
#include <phy.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <miiphy.h>
typedef struct _MII_field_desc_t {

View File

@ -11,6 +11,7 @@
#include <linux/errno.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
#include <dm/ofnode.h>
#include <dm/uclass.h>

View File

@ -9,14 +9,17 @@
#ifndef _PHY_H
#define _PHY_H
#include <dm.h>
#include <log.h>
#include <phy_interface.h>
#include <dm/ofnode.h>
#include <dm/read.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/mdio.h>
#include <log.h>
#include <phy_interface.h>
struct udevice;
#define PHY_FIXED_ID 0xa5a55a5a
#define PHY_NCSI_ID 0xbeefcafe

View File

@ -10,6 +10,8 @@
#ifndef _PHY_INTERFACE_H
#define _PHY_INTERFACE_H
#include <string.h>
typedef enum {
PHY_INTERFACE_MODE_MII,
PHY_INTERFACE_MODE_GMII,

View File

@ -8,6 +8,7 @@
#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <dm.h>
#include <env.h>
#include <log.h>
#include <net.h>