| /* SPDX-License-Identifier: GPL-2.0 |
| * AP325RXA sdram self/auto-refresh setup code |
| * Copyright (C) 2009 Magnus Damm |
| #include <linux/linkage.h> |
| #include <asm/asm-offsets.h> |
| #include <asm/romimage-macros.h> |
| /* code to enter and leave self-refresh. must be self-contained. |
| * this code will be copied to on-chip memory and executed from there. |
| ENTRY(ap325rxa_sdram_enter_start) |
| /* SBSC: disable power down and put in self-refresh mode */ |
| 1: .long 0xfe400008 /* SDCR0 */ |
| ENTRY(ap325rxa_sdram_enter_end) |
| ENTRY(ap325rxa_sdram_leave_start) |
| /* SBSC: set auto-refresh mode */ |
| 1: .long 0xfe400008 /* SDCR0 */ |
| 6: .long 0xfe40001c /* RTCOR */ |
| 7: .long 0xfe400018 /* RTCNT */ |
| ENTRY(ap325rxa_sdram_leave_end) |