dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0238-Versatile-Express-Fix-NOR-flash-0-address-and-remove.patch

5544c1
From cb97f34eca351d150574c724047709b76d00d08a Mon Sep 17 00:00:00 2001
5544c1
From: Francesco Lavra <francescolavra.fl@gmail.com>
5544c1
Date: Wed, 19 Sep 2012 05:51:58 +0000
5544c1
Subject: [PATCH] Versatile Express: Fix NOR flash 0 address and remove flash
5544c1
 alias
5544c1
5544c1
In the A series memory map (implemented in the Cortex A15 CoreTile), the
5544c1
first NOR flash bank (flash 0) is mapped to address 0x08000000, while
5544c1
address 0x00000000 can be configured as alias to either the first or the
5544c1
second flash bank. This patch fixes the definition of flash 0 address,
5544c1
and for simplicity removes the alias definition.
5544c1
5544c1
Signed-off-by: Francesco Lavra <francescolavra.fl@gmail.com>
5544c1
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
5544c1
(cherry picked from commit 661bafb3e14bfffcb0a7c7910534c7944608ca45)
5544c1
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 hw/vexpress.c | 7 ++-----
5544c1
 1 file changed, 2 insertions(+), 5 deletions(-)
5544c1
5544c1
diff --git a/hw/vexpress.c b/hw/vexpress.c
5544c1
index b615844..454c2bb 100644
5544c1
--- a/hw/vexpress.c
5544c1
+++ b/hw/vexpress.c
5544c1
@@ -62,7 +62,6 @@ enum {
5544c1
     VE_COMPACTFLASH,
5544c1
     VE_CLCD,
5544c1
     VE_NORFLASH0,
5544c1
-    VE_NORFLASH0ALIAS,
5544c1
     VE_NORFLASH1,
5544c1
     VE_SRAM,
5544c1
     VE_VIDEORAM,
5544c1
@@ -104,9 +103,8 @@ static target_phys_addr_t motherboard_legacy_map[] = {
5544c1
 };
5544c1
 
5544c1
 static target_phys_addr_t motherboard_aseries_map[] = {
5544c1
-    /* CS0: 0x00000000 .. 0x0c000000 */
5544c1
-    [VE_NORFLASH0] = 0x00000000,
5544c1
-    [VE_NORFLASH0ALIAS] = 0x08000000,
5544c1
+    /* CS0: 0x08000000 .. 0x0c000000 */
5544c1
+    [VE_NORFLASH0] = 0x08000000,
5544c1
     /* CS4: 0x0c000000 .. 0x10000000 */
5544c1
     [VE_NORFLASH1] = 0x0c000000,
5544c1
     /* CS5: 0x10000000 .. 0x14000000 */
5544c1
@@ -413,7 +411,6 @@ static void vexpress_common_init(const VEDBoardInfo *daughterboard,
5544c1
     sysbus_create_simple("pl111", map[VE_CLCD], pic[14]);
5544c1
 
5544c1
     /* VE_NORFLASH0: not modelled */
5544c1
-    /* VE_NORFLASH0ALIAS: not modelled */
5544c1
     /* VE_NORFLASH1: not modelled */
5544c1
 
5544c1
     sram_size = 0x2000000;
5544c1
-- 
5544c1
1.7.12.1
5544c1