1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* linux/arch/arm/plat-s3c64xx/sleep.S
4 * Copyright 2008 Openmoko, Inc.
5 * Copyright 2008 Simtec Electronics
6 * Ben Dooks <ben@simtec.co.uk>
7 * http://armlinux.simtec.co.uk/
9 * S3C64XX CPU sleep code
12 #include <linux/linkage.h>
13 #include <asm/assembler.h>
16 #undef S3C64XX_VA_GPIO
17 #define S3C64XX_VA_GPIO (0x0)
19 #include "regs-gpio.h"
21 #define LL_UART (S3C_PA_UART + (0x400 * CONFIG_S3C_LOWLEVEL_UART_PORT))
25 /* Sleep magic, the word before the resume entry point so that the
26 * bootloader can check for a resumeable image. */
32 * This is the entry point, stored by whatever method the bootloader
33 * requires to get the kernel runnign again. This code expects to be
34 * entered with no caches live and the MMU disabled. It will then
35 * restore the MMU and other basic CP registers saved and restart
36 * the kernel C code to finish the resume code.
40 msr cpsr_c, #PSR_I_BIT | PSR_F_BIT | SVC_MODE
41 ldr r2, =LL_UART /* for debug */