summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch')
-rw-r--r--recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch b/recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch
deleted file mode 100644
index 290f2870..00000000
--- a/recipes-devtools/qemu/qemu-zynqmp-mainline/0002-target-arm-cpu64-Add-support-for-cortex-a53.patch
+++ /dev/null
@@ -1,56 +0,0 @@
1From a69dfd5611a5671ff6163d3368d3628152251b04 Mon Sep 17 00:00:00 2001
2From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
3Date: Mon, 23 Mar 2015 04:05:11 -0700
4Subject: [PATCH 02/15] target-arm: cpu64: Add support for cortex-a53
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Similar to a53, but with different L1 I cache policy, phys addr size and
10different cache geometries. The cache sizes is implementation
11configurable, but use these values (from Xilinx MPSoC) as a default
12until cache size configurability is added.
13
14Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
15Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
16---
17 target-arm/cpu64.c | 16 ++++++++++++++++
18 1 file changed, 16 insertions(+)
19
20diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c
21index 3eb58c6..728d9a7 100644
22--- a/target-arm/cpu64.c
23+++ b/target-arm/cpu64.c
24@@ -149,6 +149,21 @@ static void aarch64_a57_initfn(Object *obj)
25 cpu->ccsidr[2] = 0x70ffe07a; /* 2048KB L2 cache */
26 }
27
28+static void aarch64_a53_initfn(Object *obj)
29+{
30+ ARMCPU *cpu = ARM_CPU(obj);
31+
32+ aarch64_axx_initfn(cpu);
33+
34+ cpu->dtb_compatible = "arm,cortex-a53";
35+ cpu->midr = 0x410fd034;
36+ cpu->ctr = 0x84448004; /* L1Ip = VIPT */
37+ cpu->id_aa64mmfr0 = 0x00001122; /* 40 bit physical addr */
38+ cpu->ccsidr[0] = 0x700fe01a; /* 32KB L1 dcache */
39+ cpu->ccsidr[1] = 0x201fe00a; /* 32KB L1 icache */
40+ cpu->ccsidr[2] = 0x707fe07a; /* 1024KB L2 cache */
41+}
42+
43 #ifdef CONFIG_USER_ONLY
44 static void aarch64_any_initfn(Object *obj)
45 {
46@@ -176,6 +191,7 @@ typedef struct ARMCPUInfo {
47
48 static const ARMCPUInfo aarch64_cpus[] = {
49 { .name = "cortex-a57", .initfn = aarch64_a57_initfn },
50+ { .name = "cortex-a53", .initfn = aarch64_a53_initfn },
51 #ifdef CONFIG_USER_ONLY
52 { .name = "any", .initfn = aarch64_any_initfn },
53 #endif
54--
551.7.10.4
56