openwrtv4/package/boot/uboot-layerscape/patches/0050-DNCPE-138-Rest-external-PHYs-before-driver-starts.patch
Yutang Jiang 15a14cf166 layerscape: add 64b/32b target for ls1012ardb device
The QorIQ LS1012A processor, optimized for battery-backed or
USB-powered, integrates a single ARM Cortex-A53 core with a hardware
packet forwarding engine and high-speed interfaces to deliver
line-rate networking performance.
QorIQ LS1012A Reference Design System (LS1012ARDB) is a high-performance
development platform, with a complete debugging environment.
The LS1012ARDB board supports the QorIQ LS1012A processor and is
optimized to support the high-bandwidth DDR3L memory and
a full complement of high-speed SerDes ports.

LEDE/OPENWRT will auto strip executable program file while make. So we
need select CONFIG_NO_STRIP=y while make menuconfig to avoid the ppfe network
fiemware be destroyed, then run make to build ls1012ardb firmware.

The fsl-quadspi flash with jffs2 fs is unstable and arise some failed message.
This issue have noticed the IP owner for investigate, hope he can solve it
earlier. So the ls1012ardb now also provide a xx-firmware.ext4.bin as default
firmware, and the uboot bootcmd will run wrtboot_ext4rfs for "rootfstype=ext4"
bootargs.

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
2016-10-31 17:00:10 +01:00

54 lines
2 KiB
Diff

From 101bee08b8441f279df657d4a45868de3f976c0c Mon Sep 17 00:00:00 2001
From: Anji J <anji.jagarlmudi@freescale.com>
Date: Thu, 26 May 2016 15:58:48 +0530
Subject: [PATCH 50/93] DNCPE-138 Rest external PHYs before driver starts
- Disable CONFIG_RESET_PHY_R, it is resetting PHYs after driver started.
- Call reset_phy() before driver initialization.
- Update bootcmd to stop pfe before kernel starts.
---
board/freescale/ls1012ardb/eth.c | 1 +
include/configs/ls1012a_common.h | 2 +-
include/configs/ls1012ardb.h | 1 -
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/freescale/ls1012ardb/eth.c b/board/freescale/ls1012ardb/eth.c
index 24fdd83..638db95 100644
--- a/board/freescale/ls1012ardb/eth.c
+++ b/board/freescale/ls1012ardb/eth.c
@@ -41,6 +41,7 @@ int board_eth_init(bd_t *bis)
struct mdio_info mac1_mdio_info;
struct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR;
+ reset_phy();
/*TODO Following config should be done for all boards, where is the right place to put this */
out_be32(&scfg->pfeasbcr, in_be32(&scfg->pfeasbcr) | SCFG_PPFEASBCR_AWCACHE0);
diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 57fc057..2895e7a 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -152,7 +152,7 @@
#else
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \
"earlycon=uart8250,mmio,0x21c0500"
-#define CONFIG_BOOTCOMMAND "sf probe 0:0; sf read $kernel_load "\
+#define CONFIG_BOOTCOMMAND "pfe stop; sf probe 0:0; sf read $kernel_load "\
"$kernel_start $kernel_size && "\
"bootm $kernel_load"
#endif
diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h
index 2eee84a..e94df74 100644
--- a/include/configs/ls1012ardb.h
+++ b/include/configs/ls1012ardb.h
@@ -24,7 +24,6 @@
#define EMAC2_PHY_ADDR 0x1
#define CONFIG_PHYLIB
#define CONFIG_PHY_REALTEK
-#define CONFIG_RESET_PHY_R
#endif
/*
--
1.7.9.5