summaryrefslogtreecommitdiff
path: root/include/configs/stm32mp1.h
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2019-01-24 11:33:29 +0100
committerPatrice Chotard <patrice.chotard@st.com>2019-06-06 17:40:15 +0200
commitbaf053f9378042f0cff9860ee771d871f3daed39 (patch)
treef19ee4bba77a940c259e431bb381806b238b9459 /include/configs/stm32mp1.h
parent80dfdb9c97d85fb2240a2394f34876b90f1d0fbf (diff)
configs: stm32mp15: Enable ENV_IS_SPI_FLASH
Add all relative flags needed by ENV_IS_IN_SPI_FLASH Reserved a 256KB partition in NOR to save the U-Boot environment. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'include/configs/stm32mp1.h')
-rw-r--r--include/configs/stm32mp1.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index dadd96eb60..a3f84900f2 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -42,6 +42,11 @@
#define CONFIG_ENV_UBI_VOLUME_REDUND "uboot_config_r"
#endif
+#if defined(CONFIG_ENV_IS_IN_SPI_FLASH)
+#define CONFIG_ENV_SECT_SIZE SZ_256K
+#define CONFIG_ENV_OFFSET 0x00280000
+#endif
+
/* ATAGs */
#define CONFIG_CMDLINE_TAG
#define CONFIG_SETUP_MEMORY_TAGS
@@ -111,7 +116,7 @@
#endif
#define STM32MP_MTDPARTS \
- "mtdparts_nor0=256k(fsbl1),256k(fsbl2),2m(ssbl),-(nor_user)\0" \
+ "mtdparts_nor0=256k(fsbl1),256k(fsbl2),2m(ssbl),256k(u-boot-env),-(nor_user)\0" \
"mtdparts_nand0=2m(fsbl),2m(ssbl1),2m(ssbl2),-(UBI)\0"
/*