Skip to content

Commit d244c61

Browse files
linkunfabp3tk0v
authored andcommitted
EDAC/npcm: Add NPCM memory controller driver
Add driver for memory controller present on Nuvoton NPCM SoCs. The memory controller supports single bit error correction and double bit error detection. Signed-off-by: Marvin Lin <milkfafa@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230111093245.318745-4-milkfafa@gmail.com
1 parent a053b7e commit d244c61

4 files changed

Lines changed: 563 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7468,6 +7468,14 @@ L: linux-edac@vger.kernel.org
74687468
S: Maintained
74697469
F: drivers/edac/mpc85xx_edac.[ch]
74707470

7471+
EDAC-NPCM
7472+
M: Marvin Lin <kflin@nuvoton.com>
7473+
M: Stanley Chu <yschu@nuvoton.com>
7474+
L: linux-edac@vger.kernel.org
7475+
S: Maintained
7476+
F: Documentation/devicetree/bindings/memory-controllers/nuvoton,npcm-memory-controller.yaml
7477+
F: drivers/edac/npcm_edac.c
7478+
74717479
EDAC-PASEMI
74727480
M: Egor Martovetsky <egor@pasemi.com>
74737481
L: linux-edac@vger.kernel.org

drivers/edac/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,4 +550,15 @@ config EDAC_ZYNQMP
550550
Xilinx ZynqMP OCM (On Chip Memory) controller. It can also be
551551
built as a module. In that case it will be called zynqmp_edac.
552552

553+
config EDAC_NPCM
554+
tristate "Nuvoton NPCM DDR Memory Controller"
555+
depends on (ARCH_NPCM || COMPILE_TEST)
556+
help
557+
Support for error detection and correction on the Nuvoton NPCM DDR
558+
memory controller.
559+
560+
The memory controller supports single bit error correction, double bit
561+
error detection (in-line ECC in which a section 1/8th of the memory
562+
device used to store data is used for ECC storage).
563+
553564
endif # EDAC

drivers/edac/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ obj-$(CONFIG_EDAC_QCOM) += qcom_edac.o
8484
obj-$(CONFIG_EDAC_ASPEED) += aspeed_edac.o
8585
obj-$(CONFIG_EDAC_BLUEFIELD) += bluefield_edac.o
8686
obj-$(CONFIG_EDAC_DMC520) += dmc520_edac.o
87+
obj-$(CONFIG_EDAC_NPCM) += npcm_edac.o
8788
obj-$(CONFIG_EDAC_ZYNQMP) += zynqmp_edac.o

0 commit comments

Comments
 (0)