[U-Boot,v1,1/4] stm32mp1: remove the second TAMP_BOOT_CONTEXT update

Message ID 1526563447-1323-2-git-send-email-patrice.chotard@st.com
State New
Delegated to: Tom Rini
Headers show
Series
  • Update STM32MP1 machine
Related show

Commit Message

Patrice CHOTARD May 17, 2018, 1:24 p.m.
From: Patrick Delaunay <patrick.delaunay@st.com>

The register TAMP_BOOT_CONTEXT is already updated in
get_bootmode() in cpu.c and no need to be done
twice.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

 arch/arm/mach-stm32mp/spl.c | 3 ---
 1 file changed, 3 deletions(-)

Patch

diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index b56f0c5381c3..790973e8b6e9 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -14,9 +14,6 @@  u32 spl_boot_device(void)
 
 	boot_mode = (readl(TAMP_BOOT_CONTEXT) & TAMP_BOOT_MODE_MASK) >>
 		    TAMP_BOOT_MODE_SHIFT;
-	clrsetbits_le32(TAMP_BOOT_CONTEXT,
-			TAMP_BOOT_MODE_MASK,
-			boot_mode << TAMP_BOOT_MODE_SHIFT);
 
 	switch (boot_mode) {
 	case BOOT_FLASH_SD_1: