提交 bd1d6da1 编写于 作者: D Dinh Nguyen 提交者: Borislav Petkov

EDAC/synopsys: Use the quirk for version instead of ddr version

Version 2.40a supports DDR_ECC_INTR_SUPPORT for a quirk, so use that
quirk to determine a call to setup_address_map().
Signed-off-by: NDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: NBorislav Petkov <bp@suse.de>
Reviewed-by: NMichal Simek <michal.simek@xilinx.com>
Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org
上级 fa55b7dc
......@@ -1352,8 +1352,7 @@ static int mc_probe(struct platform_device *pdev)
}
}
if (of_device_is_compatible(pdev->dev.of_node,
"xlnx,zynqmp-ddrc-2.40a"))
if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT)
setup_address_map(priv);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册