| * Migo-R sdram self/auto-refresh setup code |
| * Copyright (C) 2009 Magnus Damm |
| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| #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(migor_sdram_enter_start) |
| /* SBSC: disable power down and put in self-refresh mode */ |
| 1: .long 0xfe400008 /* SDCR0 */ |
| ENTRY(migor_sdram_enter_end) |
| ENTRY(migor_sdram_leave_start) |
| /* SBSC: set auto-refresh mode */ |
| 1: .long 0xfe400008 /* SDCR0 */ |
| 6: .long 0xfe40001c /* RTCOR */ |
| 7: .long 0xfe400018 /* RTCNT */ |
| ENTRY(migor_sdram_leave_end) |