Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: arch/arm/lib/bootm.c

Issue 6804009: HACK: Pass data from firmware to kernel (Closed) Base URL: ssh://gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Fill-in details Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/chromeos/os_storage.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: arch/arm/lib/bootm.c
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index e7d047a274b348850a6bfebddef164fe1af9439e..59204f9ee7cea2fc73feefc476ba66287dd6d49f 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -30,6 +30,17 @@
#include <libfdt.h>
#include <fdt_support.h>
+/*
+ * TODO(clchiou): This is an urgent hack for bringing up factory. We need to
+ * enable setup memory tags.
+ *
+ * Remove this part or move to config headers after the protocol specification
+ * between Chrome OS firmware and kernel is finalized.
+ */
+#ifndef CONFIG_SETUP_MEMORY_TAGS
+#define CONFIG_SETUP_MEMORY_TAGS
Vincent Palatin 2011/04/07 13:26:56 As we are also using "mem=" command line parameter
Che-Liang Chiou 2011/04/08 07:41:15 Good point. Thanks a lot. I will use "mem=" then.
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
#if defined (CONFIG_SETUP_MEMORY_TAGS) || \
@@ -267,6 +278,17 @@ static void setup_memory_tags (bd_t *bd)
params->u.mem.start = bd->bi_dram[i].start;
params->u.mem.size = bd->bi_dram[i].size;
+ /*
+ * TODO(clchiou): This is an urgent hack for bringing up
+ * factory. Here we reserve 1MB static area for passing data
+ * from firmware to kernel.
+ *
+ * Rewrite this part after the protocol specification between
+ * Chrome OS firmware and kernel is finalized.
+ */
+ if (i == CONFIG_NR_DRAM_BANKS - 1)
Vincent Palatin 2011/04/07 13:26:56 IMHO it would be as easy and less hackish to add a
Che-Liang Chiou 2011/04/08 07:41:15 I was not sure whether kernel treat unrecognized A
+ params->u.mem.size -= SZ_1M;
+
params = tag_next (params);
}
}
« no previous file with comments | « no previous file | lib/chromeos/os_storage.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698