]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: ram: update mask for operating mode
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 10 Apr 2019 12:09:21 +0000 (14:09 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 23 May 2019 09:38:10 +0000 (11:38 +0200)
Regression introduced by rebase, when loop
was replaced by readl_poll_timeout() function.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/ram/stm32mp1/stm32mp1_ddr.c

index c7c3ba70a4ec95ebb47b0bc4cfba79e32727a617..caa7813d4497a1d4733c5306121282f30259eea5 100644 (file)
@@ -312,7 +312,7 @@ static void wait_operating_mode(struct ddr_info *priv, int mode)
        /* self-refresh due to software => check also STAT.selfref_type */
        if (mode == DDRCTRL_STAT_OPERATING_MODE_SR) {
                mask |= DDRCTRL_STAT_SELFREF_TYPE_MASK;
-               stat |= DDRCTRL_STAT_SELFREF_TYPE_SR;
+               val |= DDRCTRL_STAT_SELFREF_TYPE_SR;
        } else if (mode == DDRCTRL_STAT_OPERATING_MODE_NORMAL) {
                /* normal mode: handle also automatic self refresh */
                mask2 = DDRCTRL_STAT_OPERATING_MODE_MASK |