summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2014-09-15 14:56:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-17 08:53:25 +0200
commit9ce9710a15a669475cc08fbdb6a8c1b900bec0ca (patch)
tree73f79cae6f8ef34a171bb9e9aeb8f9bd2370f34c
parente49b40d98504076b5604d056da9d0c92b2a00d87 (diff)
downloadbarebox-9ce9710a15a669475cc08fbdb6a8c1b900bec0ca.tar.gz
barebox-9ce9710a15a669475cc08fbdb6a8c1b900bec0ca.tar.xz
ARM:phyFLEX-iMX6: Remove mmd_write_reg from board
Remove mmd_write_reg function from board file and use phy_write_mmd_indirect. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/phytec-phyflex-imx6/board.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/boards/phytec-phyflex-imx6/board.c b/arch/arm/boards/phytec-phyflex-imx6/board.c
index 131861d25..09a5c79a9 100644
--- a/arch/arm/boards/phytec-phyflex-imx6/board.c
+++ b/arch/arm/boards/phytec-phyflex-imx6/board.c
@@ -63,17 +63,9 @@ static void phyflex_err006282_workaround(void)
gpio_direction_input(MX6_PHYFLEX_ERR006282);
}
-static void mmd_write_reg(struct phy_device *dev, int device, int reg, int val)
-{
- phy_write(dev, 0x0d, device);
- phy_write(dev, 0x0e, reg);
- phy_write(dev, 0x0d, (1 << 14) | device);
- phy_write(dev, 0x0e, val);
-}
-
static int ksz9031rn_phy_fixup(struct phy_device *dev)
{
- mmd_write_reg(dev, 2, 8, 0x039F);
+ phy_write_mmd_indirect(dev, 8, 2, 0x039F);
return 0;
}