summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-24 11:38:37 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:20 +0200
commita5c168c6d6699e050c9333c03a4d53d62eb7949b (patch)
tree8a703c86fab30c3972dd9add4016db36d0af5058
parent52a8b82074d1c3a3dcde8e3d90e6a04f7eb3a1f8 (diff)
downloadu-boot-imx-a5c168c6d6699e050c9333c03a4d53d62eb7949b.zip
u-boot-imx-a5c168c6d6699e050c9333c03a4d53d62eb7949b.tar.gz
u-boot-imx-a5c168c6d6699e050c9333c03a4d53d62eb7949b.tar.bz2
tegra: trimslice: store environment in SPI flash
The chosen flash offset matches Compulab's downstream U-Boot. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r--include/configs/trimslice.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/configs/trimslice.h b/include/configs/trimslice.h
index 7e6adc7..915b07a 100644
--- a/include/configs/trimslice.h
+++ b/include/configs/trimslice.h
@@ -47,6 +47,14 @@
#define CONFIG_BOARD_EARLY_INIT_F
+/* SPI */
+#define CONFIG_TEGRA_SPI
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_WINBOND
+#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_SF
+
/* I2C */
#define CONFIG_TEGRA_I2C
#define CONFIG_SYS_I2C_INIT_BOARD
@@ -66,8 +74,12 @@
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_FAT
-/* Environment not stored */
-#define CONFIG_ENV_IS_NOWHERE
+/* Environment in SPI */
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_SPI_MAX_HZ 48000000
+#define CONFIG_ENV_SPI_MODE SPI_MODE_0
+#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
+#define CONFIG_ENV_OFFSET (512 * 1024)
/* USB Host support */
#define CONFIG_USB_EHCI