mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 21:11:18 +02:00
stm32mp1: ram: update mask for operating mode
Regression introduced by rebase, when loop was replaced by readl_poll_timeout() function. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
66dba9a18b
commit
c3ec370aed
@@ -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 */
|
/* self-refresh due to software => check also STAT.selfref_type */
|
||||||
if (mode == DDRCTRL_STAT_OPERATING_MODE_SR) {
|
if (mode == DDRCTRL_STAT_OPERATING_MODE_SR) {
|
||||||
mask |= DDRCTRL_STAT_SELFREF_TYPE_MASK;
|
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) {
|
} else if (mode == DDRCTRL_STAT_OPERATING_MODE_NORMAL) {
|
||||||
/* normal mode: handle also automatic self refresh */
|
/* normal mode: handle also automatic self refresh */
|
||||||
mask2 = DDRCTRL_STAT_OPERATING_MODE_MASK |
|
mask2 = DDRCTRL_STAT_OPERATING_MODE_MASK |
|
||||||
|
Reference in New Issue
Block a user