linux-mips
[Top] [All Lists]

[PATCH 1/2] MIPS: add MIPS_L1_CACHE_SHIFT_2

To: <linux-mips@linux-mips.org>
Subject: [PATCH 1/2] MIPS: add MIPS_L1_CACHE_SHIFT_2
From: Florian Fainelli <florian@openwrt.org>
Date: Tue, 21 Jan 2014 10:01:33 -0800
Cc: <ralf@linux-mips.org>, <blogic@openwrt.org>, <macro@linux-mips.org>, Florian Fainelli <florian@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Some older machines such as the DECStation use a L1 data-cache shift of
2 (value of 4), add a Kconfig symbol for this value so they can express
this requirement.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 arch/mips/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 03d0ed3..9ab4239 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1098,6 +1098,9 @@ config FW_SNIPROM
 config BOOT_ELF32
        bool
 
+config MIPS_L1_CACHE_SHIFT_2
+       bool
+
 config MIPS_L1_CACHE_SHIFT_4
        bool
 
@@ -1112,6 +1115,7 @@ config MIPS_L1_CACHE_SHIFT_7
 
 config MIPS_L1_CACHE_SHIFT
        int
+       default "2" if MIPS_L1_CACHE_SHIFT_2
        default "4" if MIPS_L1_CACHE_SHIFT_4
        default "5" if MIPS_L1_CACHE_SHIFT_5
        default "6" if MIPS_L1_CACHE_SHIFT_6
-- 
1.8.3.2


<Prev in Thread] Current Thread [Next in Thread>