projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configs: migrate CONFIG_VIDEO_BMP_RLE8 to defconfigs
[platform/kernel/u-boot.git]
/
include
/
phy.h
diff --git
a/include/phy.h
b/include/phy.h
index
fedd146
..
cbdb10d
100644
(file)
--- a/
include/phy.h
+++ b/
include/phy.h
@@
-9,14
+9,17
@@
#ifndef _PHY_H
#define _PHY_H
#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 <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
#define PHY_FIXED_ID 0xa5a55a5a
#define PHY_NCSI_ID 0xbeefcafe
@@
-202,7
+205,7
@@
static inline int phy_write(struct phy_device *phydev, int devad, int regnum,
{
struct mii_dev *bus = phydev->bus;
{
struct mii_dev *bus = phydev->bus;
- if (!bus || !bus->
read
) {
+ if (!bus || !bus->
write
) {
debug("%s: No bus configured\n", __func__);
return -1;
}
debug("%s: No bus configured\n", __func__);
return -1;
}