From 52bbaef8f548463d528ea127342f358bc18249d2 Mon Sep 17 00:00:00 2001
From: Rod Whitby <rod@whitby.id.au>
Date: Wed, 26 Mar 2008 07:29:32 +0000
Subject: [PATCH] ixp4xx/apex: Add support for fatslugs, and fix the patch
 names

SVN-Revision: 10658
---
 ...h => 100-openwrt_nslu2_armeb_config.patch} |  0
 ...16mb.patch => 110-slugos_nslu2_16mb.patch} |  0
 .../apex/patches/130_fatslug_sdram_init.patch | 28 +++++++++++++++++++
 3 files changed, 28 insertions(+)
 rename target/linux/ixp4xx/image/apex/patches/{100-openwrt-nslu2-armeb_config.patch => 100-openwrt_nslu2_armeb_config.patch} (100%)
 rename target/linux/ixp4xx/image/apex/patches/{110-slugos-nslu2-16mb.patch => 110-slugos_nslu2_16mb.patch} (100%)
 create mode 100644 target/linux/ixp4xx/image/apex/patches/130_fatslug_sdram_init.patch

diff --git a/target/linux/ixp4xx/image/apex/patches/100-openwrt-nslu2-armeb_config.patch b/target/linux/ixp4xx/image/apex/patches/100-openwrt_nslu2_armeb_config.patch
similarity index 100%
rename from target/linux/ixp4xx/image/apex/patches/100-openwrt-nslu2-armeb_config.patch
rename to target/linux/ixp4xx/image/apex/patches/100-openwrt_nslu2_armeb_config.patch
diff --git a/target/linux/ixp4xx/image/apex/patches/110-slugos-nslu2-16mb.patch b/target/linux/ixp4xx/image/apex/patches/110-slugos_nslu2_16mb.patch
similarity index 100%
rename from target/linux/ixp4xx/image/apex/patches/110-slugos-nslu2-16mb.patch
rename to target/linux/ixp4xx/image/apex/patches/110-slugos_nslu2_16mb.patch
diff --git a/target/linux/ixp4xx/image/apex/patches/130_fatslug_sdram_init.patch b/target/linux/ixp4xx/image/apex/patches/130_fatslug_sdram_init.patch
new file mode 100644
index 0000000000..eb5861029c
--- /dev/null
+++ b/target/linux/ixp4xx/image/apex/patches/130_fatslug_sdram_init.patch
@@ -0,0 +1,28 @@
+Index: apex-1.5.13/src/mach-ixp42x/slugos-nslu2-16mb-armeb_config
+===================================================================
+--- apex-1.5.13.orig/src/mach-ixp42x/slugos-nslu2-16mb-armeb_config	2008-01-27 21:11:10.000000000 +1030
++++ apex-1.5.13/src/mach-ixp42x/slugos-nslu2-16mb-armeb_config	2008-01-27 21:21:31.000000000 +1030
+@@ -136,7 +136,8 @@
+ CONFIG_AUTOBOOT_DELAY=10
+ CONFIG_ENV_STARTUP_KERNEL_COPY=y
+ # CONFIG_ENV_REGION_KERNEL_SWAP is not set
+-# CONFIG_ENV_STARTUP_PREFIX_P is not set
++CONFIG_ENV_STARTUP_PREFIX_P=y
++CONFIG_ENV_STARTUP_PREFIX="sdram-init; memscan -u 0+256m"
+ 
+ #
+ #    Regions
+Index: apex-1.5.13/src/mach-ixp42x/slugos-nslu2-armeb_config
+===================================================================
+--- apex-1.5.13.orig/src/mach-ixp42x/slugos-nslu2-armeb_config	2008-01-27 21:11:10.000000000 +1030
++++ apex-1.5.13/src/mach-ixp42x/slugos-nslu2-armeb_config	2008-01-27 21:21:23.000000000 +1030
+@@ -136,7 +136,8 @@
+ CONFIG_AUTOBOOT_DELAY=10
+ CONFIG_ENV_STARTUP_KERNEL_COPY=y
+ # CONFIG_ENV_REGION_KERNEL_SWAP is not set
+-# CONFIG_ENV_STARTUP_PREFIX_P is not set
++CONFIG_ENV_STARTUP_PREFIX_P=y
++CONFIG_ENV_STARTUP_PREFIX="sdram-init; memscan -u 0+256m"
+ 
+ #
+ #    Regions
-- 
2.30.2