summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 20:04:00 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 20:04:00 +0000
commitc54de82204db5ae68b2ad2840c8388c2fd725727 (patch)
tree9908feb6c411b2e70372074dd82c802375b168bc /ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
parent836c350061600e6cde14b73417b9d073b00b0f69 (diff)
downloadedk2-c54de82204db5ae68b2ad2840c8388c2fd725727.tar.gz
ArmPlatformPkg/PL35xSmc: Added function PL35xSmcSetRefresh
Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13254 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm')
-rwxr-xr-xArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm10
1 files changed, 9 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm b/ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
index 8edc6c102..297b2d77a 100755
--- a/ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
+++ b/ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2011, ARM Limited. All rights reserved.
+// Copyright (c) 2011-2012, ARM Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
@@ -19,6 +19,7 @@
INCLUDE AsmMacroIoLib.inc
EXPORT PL35xSmcInitialize
+ EXPORT PL35xSmcSetRefresh
PRESERVE8
AREA ModuleInitializeSMC, CODE, READONLY
@@ -50,3 +51,10 @@ PL35xSmcInitialize
add r2, #0xC
b PL35xSmcInitialize
+// IN r1 Smc Base Address
+// IN r2 Smc Refresh Period 0
+// IN r3 Smc Refresh Period 1
+PL35xSmcSetRefresh
+ str r2, [r1, #PL350_SMC_REFRESH_0_OFFSET]
+ str r3, [r1, #PL350_SMC_REFRESH_1_OFFSET]
+ blx lr