Skip to content

Commit 7cb4e71

Browse files
alexandrebelloniNicolas Ferre
authored andcommitted
power: reset: at91-reset: fix power down register
In the case of at91sam9g45_restart(), the driver is writing AT91_DDRSDRC_LPCB_POWER_DOWN to AT91_DDRSDRC_RTR, this should actually be AT91_DDRSDRC_LPR. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
1 parent 0ef0901 commit 7cb4e71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/power/reset/at91-reset.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ static void at91sam9g45_restart(enum reboot_mode mode, const char *cmd)
100100
/* Disable SDRAM0 accesses */
101101
"1: str %3, [%0, #" __stringify(AT91_DDRSDRC_RTR) "]\n\t"
102102
/* Power down SDRAM0 */
103-
" str %4, [%0, #" __stringify(AT91_DDRSDRC_RTR) "]\n\t"
103+
" str %4, [%0, #" __stringify(AT91_DDRSDRC_LPR) "]\n\t"
104104
/* Disable SDRAM1 accesses */
105105
" strne %3, [%1, #" __stringify(AT91_DDRSDRC_RTR) "]\n\t"
106106
/* Power down SDRAM1 */
107-
" strne %4, [%1, #" __stringify(AT91_DDRSDRC_RTR) "]\n\t"
107+
" strne %4, [%1, #" __stringify(AT91_DDRSDRC_LPR) "]\n\t"
108108
/* Reset CPU */
109109
" str %5, [%2, #" __stringify(AT91_RSTC_CR) "]\n\t"
110110

0 commit comments

Comments
 (0)