mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
15a14cf166
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>
91 lines
3.3 KiB
Diff
91 lines
3.3 KiB
Diff
From 8b6c309e5e55670f429730449d9921987636c8ec Mon Sep 17 00:00:00 2001
|
|
From: Calvin Johnson <calvin.johnson@freescale.com>
|
|
Date: Wed, 8 Jun 2016 17:04:58 +0530
|
|
Subject: [PATCH 67/93] armv8: ls1012a: DDR optmizations
|
|
|
|
Enable DDR row-bank-column decoding. DDR address will
|
|
be decoded as row-bank-column instead of bank-row-column.
|
|
This will improve performance of serial data transfers.
|
|
|
|
Refresh cycle value must be selected based on the frequency
|
|
of DDR. tREFI = 7.8 us as per JEDEC. The value for MDREF[REF_CNT]
|
|
should be based on round up (tREFI/tCK) formula. For 500MHz, mdref
|
|
value should be 0x0f3c8000.
|
|
|
|
Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
|
|
---
|
|
board/freescale/ls1012afrdm/ls1012afrdm.c | 4 ++--
|
|
board/freescale/ls1012aqds/ls1012aqds.c | 4 ++--
|
|
board/freescale/ls1012ardb/ls1012ardb.c | 4 ++--
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c
|
|
index c691a76..4b7902a 100644
|
|
--- a/board/freescale/ls1012afrdm/ls1012afrdm.c
|
|
+++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
|
|
@@ -59,7 +59,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mdcfg2, 0x01ff00db);
|
|
|
|
/* other parms */
|
|
- out_be32(&mmdc->mdmisc, 0x00000680);
|
|
+ out_be32(&mmdc->mdmisc, 0x00001680);
|
|
out_be32(&mmdc->mpmur0, 0x00000800);
|
|
out_be32(&mmdc->mdrwd, 0x00002000);
|
|
out_be32(&mmdc->mpodtctrl, 0x0000022a);
|
|
@@ -118,7 +118,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mapsr, 0x00001067);
|
|
|
|
/* refresh scheme */
|
|
- set_wait_for_bits_clear(&mmdc->mdref, 0x103e8000, 0x00000001);
|
|
+ set_wait_for_bits_clear(&mmdc->mdref, 0x0f3c8000, 0x00000001);
|
|
|
|
/* disable CON_REQ */
|
|
out_be32(&mmdc->mdscr, 0x0);
|
|
diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c
|
|
index 516f0c3..4ae8def 100644
|
|
--- a/board/freescale/ls1012aqds/ls1012aqds.c
|
|
+++ b/board/freescale/ls1012aqds/ls1012aqds.c
|
|
@@ -82,7 +82,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mdcfg2, 0x01ff00db);
|
|
|
|
/* other parms */
|
|
- out_be32(&mmdc->mdmisc, 0x00000680);
|
|
+ out_be32(&mmdc->mdmisc, 0x00001680);
|
|
out_be32(&mmdc->mpmur0, 0x00000800);
|
|
out_be32(&mmdc->mdrwd, 0x00002000);
|
|
out_be32(&mmdc->mpodtctrl, 0x0000022a);
|
|
@@ -142,7 +142,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mapsr, 0x00001067);
|
|
|
|
/* refresh scheme */
|
|
- set_wait_for_bits_clear(&mmdc->mdref, 0x103e8000, 0x00000001);
|
|
+ set_wait_for_bits_clear(&mmdc->mdref, 0x0f3c8000, 0x00000001);
|
|
|
|
/* disable CON_REQ */
|
|
out_be32(&mmdc->mdscr, 0x0);
|
|
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
|
|
index 7f7503c..06e1f6b 100644
|
|
--- a/board/freescale/ls1012ardb/ls1012ardb.c
|
|
+++ b/board/freescale/ls1012ardb/ls1012ardb.c
|
|
@@ -88,7 +88,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mdcfg2, 0x01ff00db);
|
|
|
|
/* other parms */
|
|
- out_be32(&mmdc->mdmisc, 0x00000680);
|
|
+ out_be32(&mmdc->mdmisc, 0x00001680);
|
|
out_be32(&mmdc->mpmur0, 0x00000800);
|
|
out_be32(&mmdc->mdrwd, 0x00002000);
|
|
out_be32(&mmdc->mpodtctrl, 0x0000022a);
|
|
@@ -148,7 +148,7 @@ void mmdc_init(void)
|
|
out_be32(&mmdc->mapsr, 0x00001067);
|
|
|
|
/* refresh scheme */
|
|
- set_wait_for_bits_clear(&mmdc->mdref, 0x103e8000, 0x00000001);
|
|
+ set_wait_for_bits_clear(&mmdc->mdref, 0x0f3c8000, 0x00000001);
|
|
|
|
/* disable CON_REQ */
|
|
out_be32(&mmdc->mdscr, 0x0);
|
|
--
|
|
1.7.9.5
|
|
|