浏览代码

ti: k2g: increase phy autoneg timeout

After power cycle of a K2G EVM dhcp fails due to a auto-negotiation
timeout. This commit increases the timeout to fix the issue.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Vitaly Andrianov 9 年之前
父节点
当前提交
b8dafa2209
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      board/ti/ks2_evm/board.c
  2. 1 0
      include/configs/k2g_evm.h

+ 1 - 1
board/ti/ks2_evm/board.c

@@ -7,8 +7,8 @@
  * SPDX-License-Identifier:     GPL-2.0+
  */
 
-#include "board.h"
 #include <common.h>
+#include "board.h"
 #include <spl.h>
 #include <exports.h>
 #include <fdt_support.h>

+ 1 - 0
include/configs/k2g_evm.h

@@ -57,6 +57,7 @@
 #define CONFIG_KSNET_CPSW_NUM_PORTS	2
 #define CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE
 #define CONFIG_PHY_MICREL
+#define PHY_ANEG_TIMEOUT	10000 /* PHY needs longer aneg time */
 
 /* MMC/SD */
 #define CONFIG_MMC