summaryrefslogtreecommitdiff
path: root/drivers/edac/aspeed_edac.c
diff options
context:
space:
mode:
authorTroy Lee <troy_lee@aspeedtech.com>2020-12-07 12:00:13 +0300
committerBorislav Petkov <bp@suse.de>2020-12-07 14:05:41 +0300
commitedfc2d73ca45da19fb76f9b76ecc6e885d74d093 (patch)
treeb1685bb8b0b7731c68a3daf3b96a4adeb1e3be62 /drivers/edac/aspeed_edac.c
parentaac82707fa4593b99053fa9ebb2e73d8103130ed (diff)
downloadlinux-edfc2d73ca45da19fb76f9b76ecc6e885d74d093.tar.xz
EDAC/aspeed: Add support for AST2400 and AST2600
Add AST2400 and AST2600 EDAC driver support. Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Stefan Schaeckeler <sschaeck@cisco.com> Link: https://lkml.kernel.org/r/20201207090013.14145-3-troy_lee@aspeedtech.com
Diffstat (limited to 'drivers/edac/aspeed_edac.c')
-rw-r--r--drivers/edac/aspeed_edac.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c
index fde809efc520..a46da56d6d54 100644
--- a/drivers/edac/aspeed_edac.c
+++ b/drivers/edac/aspeed_edac.c
@@ -239,7 +239,7 @@ static int init_csrows(struct mem_ctl_info *mci)
int rc;
/* retrieve info about physical memory from device tree */
- np = of_find_node_by_path("/memory");
+ np = of_find_node_by_name(NULL, "memory");
if (!np) {
dev_err(mci->pdev, "dt: missing /memory node\n");
return -ENODEV;
@@ -375,10 +375,13 @@ static int aspeed_remove(struct platform_device *pdev)
static const struct of_device_id aspeed_of_match[] = {
+ { .compatible = "aspeed,ast2400-sdram-edac" },
{ .compatible = "aspeed,ast2500-sdram-edac" },
+ { .compatible = "aspeed,ast2600-sdram-edac" },
{},
};
+MODULE_DEVICE_TABLE(of, aspeed_of_match);
static struct platform_driver aspeed_driver = {
.driver = {
@@ -392,5 +395,5 @@ module_platform_driver(aspeed_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Stefan Schaeckeler <sschaeck@cisco.com>");
-MODULE_DESCRIPTION("Aspeed AST2500 EDAC driver");
+MODULE_DESCRIPTION("Aspeed BMC SoC EDAC driver");
MODULE_VERSION("1.0");