]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32mp1: move CONFIG_ENV_XXX in defconfig
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 13 Jan 2020 14:17:41 +0000 (15:17 +0100)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 17 Jan 2020 12:58:27 +0000 (13:58 +0100)
Move CONFIG_ENV_SECT_SIZE and CONFIG_ENV_OFFSET in stm32mp15_*_defconfig
for ST board with NOR support (STM32MP15xx-EV1 boards)
- CONFIG_SECT_SIZE values = the max supported NOR erase size (256KB)
- CONFIG_ENV_OFFSET = offset for NOR (ENV_IS_IN_SPI_FLASH)

This Patch prepares the U-Boot support of boards with STM32MP15x SOC
not provided by STMicroelectronics.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
board/st/stm32mp1/Kconfig
configs/stm32mp15_basic_defconfig
configs/stm32mp15_optee_defconfig
configs/stm32mp15_trusted_defconfig

index 9f985e57752c7e39ec9bb7bcdfbe3d458768423f..89fc562746059832c9be8bf1771db9ab8a041d1d 100644 (file)
@@ -9,12 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "stm32mp1"
 
-config ENV_SECT_SIZE
-       default 0x40000 if ENV_IS_IN_SPI_FLASH
-
-config ENV_OFFSET
-       default 0x280000 if ENV_IS_IN_SPI_FLASH
-
 config TARGET_STM32MP157C_DK2
        bool "support of STMicroelectronics STM32MP157C-DK2 Discovery Board"
        default y
index c85369ca0fb285296c8f3accacc4d9c5d4486864..1061d38d8a826aca11710dbfde9ed0d8d601e423 100644 (file)
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_ARCH_STM32MP=y
 CONFIG_SYS_MALLOC_F_LEN=0x3000
+CONFIG_ENV_SECT_SIZE=0x40000
+CONFIG_ENV_OFFSET=0x280000
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL=y
 CONFIG_TARGET_STM32MP1=y
index c192d8d441f0fb6d77ead0592c7a50c7b907eff0..6a112023a1927e74826b9c3cc3e999dff4ebcf41 100644 (file)
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_ARCH_STM32MP=y
 CONFIG_SYS_MALLOC_F_LEN=0x3000
+CONFIG_ENV_SECT_SIZE=0x40000
+CONFIG_ENV_OFFSET=0x280000
 CONFIG_TARGET_STM32MP1=y
 CONFIG_STM32MP1_OPTEE=y
 CONFIG_DISTRO_DEFAULTS=y
index a846962af503fe0fa5d2781aa5a14952580a19df..35a8929ae0f8227cce1a3814f1ec55da73bf7136 100644 (file)
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_ARCH_STM32MP=y
 CONFIG_SYS_MALLOC_F_LEN=0x3000
+CONFIG_ENV_SECT_SIZE=0x40000
+CONFIG_ENV_OFFSET=0x280000
 CONFIG_TARGET_STM32MP1=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y