summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/sc520/sc520_car.S
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-11-08 02:33:18 +0000
committerGraeme Russ <graeme.russ@gmail.com>2011-11-29 21:07:42 +1100
commit311b1a2b38b5317fdff76a5dad9d16fee3f52c79 (patch)
tree16769d92346b0c1a931f3043db08f21cf739b5db /arch/x86/cpu/sc520/sc520_car.S
parentfacc9e7bf42e3578d7e7cecf1727f31badeee6bd (diff)
sc520: Create arch asm-offsets
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'arch/x86/cpu/sc520/sc520_car.S')
-rw-r--r--arch/x86/cpu/sc520/sc520_car.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/sc520/sc520_car.S b/arch/x86/cpu/sc520/sc520_car.S
index 7cac4d1def..c04cc1f116 100644
--- a/arch/x86/cpu/sc520/sc520_car.S
+++ b/arch/x86/cpu/sc520/sc520_car.S
@@ -24,6 +24,7 @@
#include <config.h>
#include <asm/processor-flags.h>
#include <asm/arch/sc520.h>
+#include <generated/asm-offsets.h>
.section .text
@@ -55,7 +56,7 @@ car_init:
/* Configure Cache-As-RAM PAR */
movl $CONFIG_SYS_SC520_CAR_PAR, %eax
- movl $SC520_PAR2, %edi
+ movl $(SC520_MMCR_BASE + GENERATED_SC520_PAR2), %edi
movl %eax, (%edi)
/* Trash the cache then turn it on */