2009-07-20 02:40:01 +00:00
|
|
|
/*
|
2010-06-08 20:07:46 +00:00
|
|
|
* Board specific setup info
|
|
|
|
*
|
|
|
|
* (C) Copyright 2010
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
*
|
|
|
|
* Author :
|
|
|
|
* Aneesh V <aneesh@ti.com>
|
2009-07-20 02:40:01 +00:00
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-07-20 02:40:01 +00:00
|
|
|
*/
|
|
|
|
|
2013-03-14 11:15:25 +00:00
|
|
|
#include <config.h>
|
2011-11-15 14:49:55 +00:00
|
|
|
#include <asm/arch/omap.h>
|
2013-04-24 00:41:24 +00:00
|
|
|
#include <asm/omap_common.h>
|
2012-09-18 04:30:51 +00:00
|
|
|
#include <asm/arch/spl.h>
|
2012-03-08 07:20:18 +00:00
|
|
|
#include <linux/linkage.h>
|
2011-11-15 14:50:03 +00:00
|
|
|
|
2015-07-15 14:02:19 +00:00
|
|
|
#ifdef CONFIG_SPL
|
2012-03-08 07:20:18 +00:00
|
|
|
ENTRY(save_boot_params)
|
2015-07-15 14:02:19 +00:00
|
|
|
|
2013-04-24 00:41:24 +00:00
|
|
|
ldr r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
|
2011-11-15 14:50:03 +00:00
|
|
|
str r0, [r1]
|
2015-02-07 17:47:28 +00:00
|
|
|
b save_boot_params_ret
|
2012-03-08 07:20:18 +00:00
|
|
|
ENDPROC(save_boot_params)
|
2015-03-09 22:12:05 +00:00
|
|
|
#endif
|
2011-11-15 14:50:03 +00:00
|
|
|
|
2015-03-09 22:12:03 +00:00
|
|
|
ENTRY(omap_smc1)
|
|
|
|
PUSH {r4-r12, lr} @ save registers - ROM code may pollute
|
2011-06-16 23:30:52 +00:00
|
|
|
@ our registers
|
2015-03-09 22:12:03 +00:00
|
|
|
MOV r12, r0 @ Service
|
|
|
|
MOV r0, r1 @ Argument
|
|
|
|
DSB
|
|
|
|
DMB
|
|
|
|
.word 0xe1600070 @ SMC #0 - hand assembled for GCC versions
|
|
|
|
@ call ROM Code API for the service requested
|
|
|
|
|
|
|
|
POP {r4-r12, pc}
|
|
|
|
ENDPROC(omap_smc1)
|