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

Side by Side Diff: lib/chromeos/os_storage.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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « arch/arm/lib/bootm.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 * 5 *
6 * Alternatively, this software may be distributed under the terms of the 6 * Alternatively, this software may be distributed under the terms of the
7 * GNU General Public License ("GPL") version 2 as published by the Free 7 * GNU General Public License ("GPL") version 2 as published by the Free
8 * Software Foundation. 8 * Software Foundation.
9 */ 9 */
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 debug(PREFIX "LoadKernel status: %d\n", status); 207 debug(PREFIX "LoadKernel status: %d\n", status);
208 if (status == LOAD_KERNEL_SUCCESS) { 208 if (status == LOAD_KERNEL_SUCCESS) {
209 debug(PREFIX "partition_number: 0x%08x\n", 209 debug(PREFIX "partition_number: 0x%08x\n",
210 (int) params->partition_number); 210 (int) params->partition_number);
211 debug(PREFIX "bootloader_address: 0x%08x\n", 211 debug(PREFIX "bootloader_address: 0x%08x\n",
212 (int) params->bootloader_address); 212 (int) params->bootloader_address);
213 debug(PREFIX "bootloader_size: 0x%08x\n", 213 debug(PREFIX "bootloader_size: 0x%08x\n",
214 (int) params->bootloader_size); 214 (int) params->bootloader_size);
215 } 215 }
216 216
217 /*
218 * TODO(clchiou): This is an urgent hack for bringing up factory. We
219 * fill in data that will be used by kernel at last 1MB space.
220 *
221 * Rewrite this part after the protocol specification between
222 * Chrome OS firmware and kernel is finalized.
223 */
224 if (status == LOAD_KERNEL_SUCCESS) {
225 DECLARE_GLOBAL_DATA_PTR;
226
227 struct kernel_shared_data {
228 uint32_t chsw;
229 uint8_t hwid[256];
230 uint32_t fwid;
rongchang 2011/04/06 11:52:04 fwid & frid are asciiz too
Che-Liang Chiou 2011/04/07 11:17:32 Done.
231 uint32_t frid;
232 uint32_t binf[4];
rongchang 2011/04/06 11:52:04 binf[5]
Che-Liang Chiou 2011/04/07 11:17:32 Done.
233 uint32_t gpio;
rongchang 2011/04/06 11:52:04 gpio[11]
Che-Liang Chiou 2011/04/07 11:17:32 Done.
234 uint32_t vbnv[2];
235 uint64_t fmap_start_address;
236 } __attributed__((packed)) *sd;
237 sd = (struct kernel_shared_data*) (
238 gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS-1].start +
239 gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS-1].size -
240 SZ_1M);
241
242 /* TODO fill in shared data */
243 memset(sd, '\0', sizeof(*sd));
244 }
245
217 return status; 246 return status;
218 } 247 }
OLDNEW
« no previous file with comments | « arch/arm/lib/bootm.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698