aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/999-memory-detect.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-03-18 19:21:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-03-18 19:21:56 +0000
commitde51ae36beb618be705b292e32610a2e3efae330 (patch)
tree5bd54a4e1462f1d3bd187b2af9d1f2d1d4f00d55 /target/linux/ramips/patches-3.10/999-memory-detect.patch
parent694bc2270f53c34cdf86d5067040481f37e44e00 (diff)
downloadmaster-187ad058-de51ae36beb618be705b292e32610a2e3efae330.tar.gz
master-187ad058-de51ae36beb618be705b292e32610a2e3efae330.tar.bz2
master-187ad058-de51ae36beb618be705b292e32610a2e3efae330.zip
ralink: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/999-memory-detect.patch')
-rw-r--r--target/linux/ramips/patches-3.10/999-memory-detect.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/target/linux/ramips/patches-3.10/999-memory-detect.patch b/target/linux/ramips/patches-3.10/999-memory-detect.patch
deleted file mode 100644
index 165a1f0ded..0000000000
--- a/target/linux/ramips/patches-3.10/999-memory-detect.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- a/arch/mips/ralink/of.c
-+++ b/arch/mips/ralink/of.c
-@@ -80,6 +80,16 @@ void __init device_tree_init(void)
- }
-
- extern struct boot_param_header __image_dtb;
-+static int memory_dtb;
-+
-+static int __init early_init_dt_find_memory(unsigned long node, const char *uname,
-+ int depth, void *data)
-+{
-+ if (depth == 1 && !strcmp(uname, "memory@0"))
-+ memory_dtb = 1;
-+
-+ return 0;
-+}
-
- void __init plat_mem_setup(void)
- {
-@@ -90,8 +100,10 @@ void __init plat_mem_setup(void)
- * parsed resulting in our memory appearing
- */
- __dt_setup_arch(&__image_dtb);
--
-- if (soc_info.mem_size)
-+ of_scan_flat_dt(early_init_dt_find_memory, NULL);
-+ if (memory_dtb)
-+ of_scan_flat_dt(early_init_dt_scan_memory, NULL);
-+ else if (soc_info.mem_size)
- add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
- BOOT_MEM_RAM);
- else