From 5e165b258f4231d8f9d07e773f19aaa57587f45a Mon Sep 17 00:00:00 2001
From: Masahiro Yamada <yamada.m@jp.panasonic.com>
Date: Tue, 6 Jan 2015 14:18:57 +0900
Subject: [PATCH] ARM: UniPhier: fix SRAM size on support card

The max size of available memories on slot0 and slot1 is 32MB because
 - EA[25] signal is not output on the save-pin mode which is
   used PH1-LD4 or later SoCs.
 - EA[25] signal is not connected by the limitation (or bug?) of
   the PLD logic of DCC support card.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---
 arch/arm/cpu/armv7/uniphier/support_card.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv7/uniphier/support_card.c b/arch/arm/cpu/armv7/uniphier/support_card.c
index 419012e1ab..443224c451 100644
--- a/arch/arm/cpu/armv7/uniphier/support_card.c
+++ b/arch/arm/cpu/armv7/uniphier/support_card.c
@@ -160,12 +160,12 @@ static const struct memory_bank memory_banks_boot_swap_on[] = {
 
 #if defined(CONFIG_DCC_MICRO_SUPPORT_CARD)
 static const struct memory_bank memory_banks_boot_swap_off[] = {
-	{0x04000000, 0x04000000},
+	{0x04000000, 0x02000000},
 };
 
 static const struct memory_bank memory_banks_boot_swap_on[] = {
-	{0x00000000, 0x04000000},
-	{0x04000000, 0x04000000},
+	{0x00000000, 0x02000000},
+	{0x04000000, 0x02000000},
 };
 #endif
 
-- 
2.39.5