EDAC/altera: Add separate SDRAM EDAC config
authorThor Thayer <thor.thayer@linux.intel.com>
Mon, 25 Feb 2019 18:56:45 +0000 (12:56 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 26 Feb 2019 15:18:57 +0000 (16:18 +0100)
commit580b5cf50ca8f4781961382d54959683341b3126
tree37f6e534a18c33d015a212656522d174f5f67459
parent7f736599d632dde93bda79cca54fd5dcfd937e06
EDAC/altera: Add separate SDRAM EDAC config

The CONFIG_ALTERA_EDAC Kconfig symbol always enables the SDRAM EDAC
functionality. On the newer architectures, however, there are cases
where the peripheral EDAC functionality is enabled but SDRAM needs to be
disabled.

Move SDRAM functions so they can be contained inside the conditional
CONFIG. Create new CONFIG option just for SDRAM.

 [ bp: Massage commit message. ]

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: dinguyen@kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: linux@armlinux.org.uk
Link: https://lkml.kernel.org/r/1551121006-4657-2-git-send-email-thor.thayer@linux.intel.com
drivers/edac/Kconfig
drivers/edac/altera_edac.c