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

Unified Diff: set.c

Issue 6611009: Add the nand device support for cbootimage tool. (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 10 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
« data_layout.c ('K') | « set.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: set.c
diff --git a/set.c b/set.c
index e8ea25962432e2e05895ab418623397ca166b0b6..1b16c2194e8b67491805f7fc2edc9b0f8cf6df56 100644
--- a/set.c
+++ b/set.c
@@ -372,6 +372,32 @@ update_num_param_sets(build_image_context *context, u_int32_t index)
}
/*
+ * set_nand_param(): Processes commands to set Nand parameters.
+ */
+int
+set_nand_param(build_image_context *context,
+ u_int32_t index,
+ parse_token token,
+ u_int32_t value)
+{
+ assert(context != NULL);
+ assert(context->bct != NULL);
+
+ update_num_param_sets(context, index);
+
+ switch (token) {
+ CASE_DEVICE_VALUE(nand, clock_divider);
+ CASE_DEVICE_VALUE(nand, nand_timing);
+ CASE_DEVICE_VALUE(nand, nand_timing2);
+ CASE_DEVICE_VALUE(nand, block_size_log2);
+ CASE_DEVICE_VALUE(nand, page_size_log2);
+ DEFAULT();
+ }
+
+ return 0;
+}
+
+/*
* set_sdmmc_param(): Processes commands to set MoviNand parameters.
*/
int
« data_layout.c ('K') | « set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698