mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 07:54:54 +08:00
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: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Michal Simek <michal.simek@xilinx.com> Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org
This commit is contained in:
parent
fa55b7dcdc
commit
bd1d6da17c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user