提交 84c4f2f2 编写于 作者: H Humphrey Bucknell 提交者: Haavard Skinnemoen

avr32: pm_standby low-power ram bug fix

The value stored into the SDRAMC LPR register should be the current
value of the register with the Self-refresh value set in the lower bit
field.

The bug involved only the Self-refresh value being written to the
register, thus over writing any low-power ram settings.
Signed-off-by: NHumphrey Bucknell <hbucknell@saitek.com>
Signed-off-by: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
上级 9e3f544d
...@@ -134,7 +134,7 @@ pm_standby: ...@@ -134,7 +134,7 @@ pm_standby:
mov r11, SDRAMC_LPR_LPCB_SELF_RFR mov r11, SDRAMC_LPR_LPCB_SELF_RFR
bfins r10, r11, 0, 2 /* LPCB <- self Refresh */ bfins r10, r11, 0, 2 /* LPCB <- self Refresh */
sync 0 /* flush write buffer */ sync 0 /* flush write buffer */
st.w r12[SDRAMC_LPR], r11 /* put SDRAM in self-refresh mode */ st.w r12[SDRAMC_LPR], r10 /* put SDRAM in self-refresh mode */
ld.w r11, r12[SDRAMC_LPR] ld.w r11, r12[SDRAMC_LPR]
unmask_interrupts unmask_interrupts
sleep CPU_SLEEP_FROZEN sleep CPU_SLEEP_FROZEN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册