Skip to content

Commit 71bcada

Browse files
Thor ThayerDinh Nguyen
authored andcommitted
edac: altera: Add Altera SDRAM EDAC support
This patch adds support for the CycloneV and ArriaV SDRAM controllers. Correction and reporting of SBEs, Panic on DBEs. There was a discussion thread on whether this driver should be an mfd driver or just make use of syscon, which is already a mfd. Ultimately, the decision to use a simple syscon interface was reached.[1] [1] https://lkml.org/lkml/2014/7/30/514 [dinguyen] Fixed Kconfig to have EDAC_ALTERA_MC as a tristate to prevent a build failure for allmodconfig. Signed-off-by: Thor Thayer <[email protected]> Acked-by: Borislav Petkov <[email protected]> [dinguyen] cleaned up commit message Signed-off-by: Dinh Nguyen <[email protected]>
1 parent 52addcf commit 71bcada

File tree

4 files changed

+426
-0
lines changed

4 files changed

+426
-0
lines changed

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,11 @@ M: Dinh Nguyen <[email protected]>
13761376
S: Maintained
13771377
F: drivers/clk/socfpga/
13781378

1379+
ARM/SOCFPGA EDAC SUPPORT
1380+
M: Thor Thayer <[email protected]>
1381+
S: Maintained
1382+
F: drivers/edac/altera_edac.
1383+
13791384
ARM/STI ARCHITECTURE
13801385
M: Srinivas Kandagatla <[email protected]>
13811386
M: Maxime Coquelin <[email protected]>

drivers/edac/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,13 @@ config EDAC_OCTEON_PCI
376376
Support for error detection and correction on the
377377
Cavium Octeon family of SOCs.
378378

379+
config EDAC_ALTERA_MC
380+
tristate "Altera SDRAM Memory Controller EDAC"
381+
depends on EDAC_MM_EDAC && ARCH_SOCFPGA
382+
help
383+
Support for error detection and correction on the
384+
Altera SDRAM memory controller. Note that the
385+
preloader must initialize the SDRAM before loading
386+
the kernel.
387+
379388
endif # EDAC

drivers/edac/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ obj-$(CONFIG_EDAC_OCTEON_PC) += octeon_edac-pc.o
6565
obj-$(CONFIG_EDAC_OCTEON_L2C) += octeon_edac-l2c.o
6666
obj-$(CONFIG_EDAC_OCTEON_LMC) += octeon_edac-lmc.o
6767
obj-$(CONFIG_EDAC_OCTEON_PCI) += octeon_edac-pci.o
68+
69+
obj-$(CONFIG_EDAC_ALTERA_MC) += altera_edac.o

0 commit comments

Comments
 (0)