ARM: socfpga: Enable Arria10 L2 cache ECC on startup
authorThor Thayer <tthayer@opensource.altera.com>
Mon, 21 Mar 2016 16:01:45 +0000 (11:01 -0500)
committerBorislav Petkov <bp@suse.de>
Tue, 29 Mar 2016 08:42:34 +0000 (10:42 +0200)
commitff6fd1478c531a40279cf013227279f31ff90b41
tree765a59dc03cb9a44d0fbd8a03ebacab4e45d637e
parent588cb03ea208b303e6dee7e916f329043fd0fc26
ARM: socfpga: Enable Arria10 L2 cache ECC on startup

Enable ECC for Arria10 L2 cache on machine startup. The ECC has to be
enabled before data is stored in memory otherwise the ECC will fail on
reads.

Use DT_MACHINE to select Arria10 L2 cache function.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: devicetree@vger.kernel.org
Cc: dinguyen@opensource.altera.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux@arm.linux.org.uk
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1458576106-24505-9-git-send-email-tthayer@opensource.altera.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/arm/mach-socfpga/core.h
arch/arm/mach-socfpga/l2_cache.c
arch/arm/mach-socfpga/socfpga.c