summaryrefslogtreecommitdiff
path: root/include/configs/seaboard.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-04-29 11:17:27 -0700
committerSimon Glass <sjg@chromium.org>2011-08-24 09:56:21 -0700
commitfdbcf5a4ff6491f24d17a17636ace3ea6a1b8726 (patch)
treeaa2ddb5e0d28227ee0c945dee75b88e41a3c70dd /include/configs/seaboard.h
parentd1b282db26a73650b51c680a693e707579ea8035 (diff)
Enable SPI environment on Seaboard
This uses the SPI flash on Seaboard to store a 4KB environment. Change-Id: I9378cbe14b4b87ec31cab2f8d96868f371ef2a2d Reviewed-on: http://gerrit.chromium.org/gerrit/192 Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/seaboard.h')
-rw-r--r--include/configs/seaboard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index b61dc1535b..aa20131b16 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -59,6 +59,12 @@
#define CONFIG_CMD_SPI
#define CONFIG_CMD_SF
+/* Environment in SPI */
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+
+#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
+#define CONFIG_ENV_OFFSET (SZ_4M - CONFIG_ENV_SECT_SIZE)
+
/* To select the order in which U-Boot sees USB ports */
#define CONFIG_TEGRA2_USB0 NV_PA_USB3_BASE
#define CONFIG_TEGRA2_USB1 NV_PA_USB1_BASE