2 * Migo-R sdram self/auto-refresh setup code
4 * Copyright (C) 2009 Magnus Damm
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
11 #include <linux/sys.h>
12 #include <linux/errno.h>
13 #include <linux/linkage.h>
14 #include <asm/asm-offsets.h>
15 #include <asm/suspend.h>
16 #include <asm/romimage-macros.h>
18 /* code to enter and leave self-refresh. must be self-contained.
19 * this code will be copied to on-chip memory and executed from there.
22 ENTRY(migor_sdram_enter_start)
24 /* SBSC: disable power down and put in self-refresh mode */
37 1: .long 0xfe400008 /* SDCR0 */
40 ENTRY(migor_sdram_enter_end)
43 ENTRY(migor_sdram_leave_start)
45 /* SBSC: set auto-refresh mode */
64 1: .long 0xfe400008 /* SDCR0 */
66 6: .long 0xfe40001c /* RTCOR */
67 7: .long 0xfe400018 /* RTCNT */
69 ENTRY(migor_sdram_leave_end)