]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
edac: synopsys: fix incorrect macro defines
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Wed, 18 Oct 2017 10:59:26 +0000 (16:29 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 27 Oct 2017 12:39:09 +0000 (14:39 +0200)
device_config[31:30] in MSTR register of ddrc Indicates the configuration
of the device used in the system as follows
- 00 - x4 device
- 01 - x8 device
- 10 - x16 device
- 11 - x32 device
for x16 and x32, instead of 2 and 3 we added 0x10 and 0x11 which is wrong.
This patch corrects these macro defines.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/edac/synopsys_edac.c

index d9aa4e6dc613de8934755892632b683081071240..665f578326a338750020c96524cf20cbe3e34297 100644 (file)
 #define DDRC_MSTR_DEV_CONFIG_SHIFT     30
 #define DDRC_MSTR_DEV_CONFIG_X4_MASK   0
 #define DDRC_MSTR_DEV_CONFIG_X8_MASK   1
-#define DDRC_MSTR_DEV_CONFIG_X16_MASK  0x10
-#define DDRC_MSTR_DEV_CONFIG_X32_MASK  0X11
+#define DDRC_MSTR_DEV_CONFIG_X16_MASK  0x2
+#define DDRC_MSTR_DEV_CONFIG_X32_MASK  0x3
 
 /* DDR4 and DDR3 device Row,Column,Bank Mapping */
 #define DDR4_COL_SHIFT         3