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>
#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