mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 01:17:39 +00:00
mx6sabresd: Remove board_phy_config()
With Ethernet DM in place, there is no longer the need for having the board_phy_config() anymore. Remove it. Confirmed that TFTP transfer still works fine without board_phy_config(). Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
This commit is contained in:
parent
dbc4814515
commit
450af2495e
1 changed files with 0 additions and 34 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <net.h>
|
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/iomux.h>
|
#include <asm/arch/iomux.h>
|
||||||
|
@ -254,39 +253,6 @@ int board_mmc_init(struct bd_info *bis)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int ar8031_phy_fixup(struct phy_device *phydev)
|
|
||||||
{
|
|
||||||
unsigned short val;
|
|
||||||
|
|
||||||
/* To enable AR8031 ouput a 125MHz clk from CLK_25M */
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x7);
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0xe, 0x8016);
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x4007);
|
|
||||||
|
|
||||||
val = phy_read(phydev, MDIO_DEVAD_NONE, 0xe);
|
|
||||||
val &= 0xffe3;
|
|
||||||
val |= 0x18;
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0xe, val);
|
|
||||||
|
|
||||||
/* introduce tx clock delay */
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x5);
|
|
||||||
val = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
|
|
||||||
val |= 0x0100;
|
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, val);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_phy_config(struct phy_device *phydev)
|
|
||||||
{
|
|
||||||
ar8031_phy_fixup(phydev);
|
|
||||||
|
|
||||||
if (phydev->drv->config)
|
|
||||||
phydev->drv->config(phydev);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(CONFIG_VIDEO_IPUV3)
|
#if defined(CONFIG_VIDEO_IPUV3)
|
||||||
static void disable_lvds(struct display_info_t const *dev)
|
static void disable_lvds(struct display_info_t const *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue