aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch
diff options
context:
space:
mode:
authorYutang Jiang <yutang.jiang@nxp.com>2016-10-29 00:18:23 +0800
committerJohn Crispin <john@phrozen.org>2016-10-31 17:00:10 +0100
commit15a14cf1665ef3d8b5c77cce69b52d131340e3b3 (patch)
treebd544b24bd3e7fc7efc61f80e1755274971c5582 /package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch
parentc6c731fe311f7da42777ffd31804a4f6aa3f8e19 (diff)
downloadupstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.tar.gz
upstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.tar.bz2
upstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.zip
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>
Diffstat (limited to 'package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch')
-rw-r--r--package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch b/package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch
new file mode 100644
index 0000000000..7c532fb9fd
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0067-armv8-ls1012a-DDR-optmizations.patch
@@ -0,0 +1,90 @@
+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
+