diff mbox series

[U-Boot,14/14] stm32mp1: Update env_get_location for NORsupport

Message ID 1557504691-26188-15-git-send-email-patrice.chotard@st.com
State Superseded
Headers show
Series Add saveenv support for STM32MP1 | expand

Commit Message

Patrice CHOTARD May 10, 2019, 4:11 p.m. UTC
Update env_get_location() to be able to save environment into
NOR (SPI_FLASH).

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

 board/st/stm32mp1/stm32mp1.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 4f7d24a..af607c5 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -524,6 +524,10 @@  enum env_location env_get_location(enum env_operation op, int prio)
 	case BOOT_FLASH_NAND:
 		return ENVL_UBI;
 #endif
+#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
+	case BOOT_FLASH_NOR:
+		return ENVL_SPI_FLASH;
+#endif
 	default:
 		return ENVL_NOWHERE;
 	}