summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-08-17 09:47:13 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:34 -0700
commitc1ded34fd2b791cc19688ae9339ebd0144ee6a36 (patch)
treefa23abbca3f87034870459cc62d29afcac0df40a /board
parent3e79883063d890a85da157c508afd3012735b8e0 (diff)
Add flashmap information to the x86-alex device tree
The structure is taken from the tegra2 device trees, while the content is taken from the fmap currently provided by coreboot. This patch also adds some information required by chromeos-bootimage. BUG=chrome-os-partner:5432 BUG=chrome-os-partner:5248 TEST=Built the x86-alex device tree ebuild. Used later changes to verify that the information was found and processed by u-boot. Signed-off-by: Gabe Black <gabeblack@google.com> Change-Id: I806b7a7f2f69cc4b8de590b214d2971a9ffa26ae Reviewed-on: http://gerrit.chromium.org/gerrit/5856 Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/chromebook-x86/coreboot/flashmap-4mb.dtsi187
-rw-r--r--board/chromebook-x86/coreboot/x86-alex.dts8
2 files changed, 195 insertions, 0 deletions
diff --git a/board/chromebook-x86/coreboot/flashmap-4mb.dtsi b/board/chromebook-x86/coreboot/flashmap-4mb.dtsi
new file mode 100644
index 0000000000..bbaaa0f259
--- /dev/null
+++ b/board/chromebook-x86/coreboot/flashmap-4mb.dtsi
@@ -0,0 +1,187 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ /*
+ * Names will be capitalized and hyphen converted to underscore by
+ * cros_bundle_firmware.
+ */
+ flash@ffc00000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "chromeos,flashmap";
+ reg = <0x00000000 0x00400000>;
+
+ /* ---- Section: Read-only ---- */
+ ro-section@0 {
+ label = "ro-section";
+ reg = <0x00220000 0x001e0000>;
+ read-only;
+ };
+
+ ro-boot@0 {
+ label = "boot-stub";
+ reg = <0x00380000 0x00080000>; /* 512 KB */
+ read-only;
+ type = "blob signed";
+ };
+ ro-recovery@0 {
+ /* Deprecated section */
+ label = "recovery";
+ reg = <0x00280000 0x00080000>;
+ read-only;
+ };
+ ro-firmware-id@0 {
+ label = "ro-frid";
+ reg = <0x00270400 0x00000040>;
+ read-only;
+ type = "blobstring fwid";
+ };
+ ro-fmap@0 {
+ label = "fmap";
+
+ /* We encourage to align FMAP partition in as large
+ * block as possible so that flashrom can find it soon.
+ * For example, aligning to 512KB is better than to
+ * 256KB. */
+
+ reg = <0x00270000 0x00000400>;
+ read-only;
+ type = "fmap";
+ ver-major = <1>;
+ ver-minor = <0>;
+ };
+ ro-gbb@0 {
+ label = "gbb";
+
+ /* GBB offset must be aligned to 4K bytes */
+ reg = <0x00340000 0x00040000>;
+ read-only;
+ type = "blob gbb";
+ };
+ ro-data@0 {
+ /* Currently unused, simply for padding */
+ label = "ro-data";
+ reg = <0x00300000 0x00040000>;
+ read-only;
+ };
+
+ /* ---- Section: Vital-product data (VPD) ---- */
+ ro-vpd@0 {
+ label = "ro-vpd";
+
+ /* VPD offset must be aligned to 4K bytes */
+ reg = <0x00200000 0x00020000>;
+ read-only;
+ type = "wiped";
+ wipe-value = [ff];
+ };
+
+ /* ---- Section: Rewritable slot A ---- */
+ rw-a@0 {
+ label = "rw-section-a";
+ /* Alignment: 4k (for updating) */
+ reg = <0x00020000 0x000f0000>;
+ };
+ rw-a-vblock@0 {
+ label = "vblock-a";
+ /* Alignment: 4k (for updating) and must be in start of
+ * each RW_SECTION. */
+ reg = <0x00020000 0x00010000>;
+ type = "keyblock boot";
+ keyblock = "firmware.keyblock";
+ signprivate = "firmware_data_key.vbprivk";
+ version = <1>;
+ kernelkey = "kernel_subkey.vbpubk";
+ preamble-flags = <1>;
+ };
+ rw-a-boot@0 {
+ /* Alignment: no requirement (yet). */
+ label = "fw-main-a";
+ reg = <0x00030000 0x000dffc0>;
+ type = "blob boot";
+ };
+ rw-a-firmware-id@0 {
+ /* Alignment: no requirement. */
+ label = "rw-fwid-a";
+ reg = <0x0010ffc0 0x00000040>;
+ read-only;
+ type = "blobstring fwid";
+ };
+
+ /* ---- Section: Rewritable slot B ---- */
+ rw-b@0 {
+ label = "rw-section-b";
+ /* Alignment: 4k (for updating) */
+ reg = <0x00110000 0x000f0000>;
+ };
+ rw-b-vblock@0 {
+ label = "vblock-b";
+ /* Alignment: 4k (for updating) and must be in start of
+ * each RW_SECTION. */
+ reg = <0x00110000 0x00010000>;
+ type = "keyblock boot";
+ keyblock = "firmware.keyblock";
+ signprivate = "firmware_data_key.vbprivk";
+ version = <1>;
+ kernelkey = "kernel_subkey.vbpubk";
+ preamble-flags = <1>;
+ };
+ rw-b-boot@0 {
+ label = "fw-main-b";
+ /* Alignment: no requirement (yet). */
+ reg = <0x00120000 0x000dffc0>;
+ type = "blob boot";
+ };
+ rw-b-firmware-id@0 {
+ label = "rw-fwid-b";
+ /* Alignment: no requirement. */
+ reg = <0x001fffc0 0x00000040>;
+ read-only;
+ type = "blobstring fwid";
+ };
+
+ /* ---- Section: Rewritable VPD 32 KB ---- */
+ rw-vpd@0 {
+ label = "rw-vpd";
+ /* Alignment: 4k (for updating) */
+ reg = <0x00000000 0x00001000>;
+ type = "wiped";
+ wipe-value = [ff];
+ };
+
+ /* ---- Section: Rewritable shared 16 KB---- */
+ shared-section@0 {
+ /* Alignment: 4k (for updating).
+ * Anything in this range may be updated in recovery. */
+ label = "rw-shared";
+ reg = <0x00001000 0x0001f000>;
+ };
+ shared-data@0 {
+ label = "shared-data";
+ /* Alignment: 4k (for random read/write).
+ * RW firmware can put calibration data here. */
+ reg = <0x00001000 0x0001f000>;
+ type = "wiped";
+ wipe-value = [00];
+ };
+ /* ---- Section: Rewritable private 16 KB---- */
+ dev-cfg@0 {
+ label = "dev-cfg";
+ /* Alignment: 4k, and must occupy bottom of U-Boot
+ * firmware -- check CONFIG_ENV_OFFSET */
+ reg = <0x00000000 0x00000000>;
+
+ /*
+ * We could put the dev environment here, but U-Boot has
+ * a default built in. Devs can 'saveenv' to set this
+ * up.
+ */
+ type = "wiped";
+ wipe-value = [00];
+ };
+ };
+};
diff --git a/board/chromebook-x86/coreboot/x86-alex.dts b/board/chromebook-x86/coreboot/x86-alex.dts
index bd90d185f1..5d3aeca3a2 100644
--- a/board/chromebook-x86/coreboot/x86-alex.dts
+++ b/board/chromebook-x86/coreboot/x86-alex.dts
@@ -1,13 +1,21 @@
/dts-v1/;
+/include/ "flashmap-4mb.dtsi"
+
/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Google Alex";
compatible = "google,alex", "intel,atom-pineview";
+ chromeos-config {
+ twostop; /* Two-stop boot */
+ twostop-optional; /* One-stop optimization enabled */
+ };
+
config {
silent_console = <0>;
+ hwid = "X86 ALEX TEST 9769";
};
aliases {