EDAC, fsl_ddr: Add missing DDR DRAM types
authorYork Sun <york.sun@nxp.com>
Tue, 9 Aug 2016 21:55:42 +0000 (14:55 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 1 Sep 2016 08:28:01 +0000 (10:28 +0200)
commit4e2c3252d2426cd05286e38650365f215571d3c6
tree964296a048b48ed1ad2c5f594ea5408114828068
parentd43a9fb202bc86a6f5a2bb44b06cf9fd5581080b
EDAC, fsl_ddr: Add missing DDR DRAM types

The compatible DDR controllers may support DDR, DDR2, DDR3, DDR4 DRAM.
An individual controller doesn't support all of them. The EDAC driver
reads SDRAM_CFG to determine which mode is configured.

Add DDR4 and drop the defines used only in the mtype assignment.

Signed-off-by: York Sun <york.sun@nxp.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: morbidrsa@gmail.com
Cc: oss@buserror.net
Cc: stuart.yoder@nxp.com
Link: http://lkml.kernel.org/r/1470779760-16483-6-git-send-email-york.sun@nxp.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/fsl_ddr_edac.c
drivers/edac/fsl_ddr_edac.h