Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Troy Lee and committed by
Borislav Petkov
edfc2d73 aac82707

+8 -5
+3 -3
drivers/edac/Kconfig
··· 515 515 health, you should probably say 'Y' here. 516 516 517 517 config EDAC_ASPEED 518 - tristate "Aspeed AST 2500 SoC" 519 - depends on MACH_ASPEED_G5 518 + tristate "Aspeed AST BMC SoC" 519 + depends on ARCH_ASPEED 520 520 help 521 - Support for error detection and correction on the Aspeed AST 2500 SoC. 521 + Support for error detection and correction on the Aspeed AST BMC SoC. 522 522 523 523 First, ECC must be configured in the bootloader. Then, this driver 524 524 will expose error counters via the EDAC kernel framework.
+5 -2
drivers/edac/aspeed_edac.c
··· 239 239 int rc; 240 240 241 241 /* retrieve info about physical memory from device tree */ 242 - np = of_find_node_by_path("/memory"); 242 + np = of_find_node_by_name(NULL, "memory"); 243 243 if (!np) { 244 244 dev_err(mci->pdev, "dt: missing /memory node\n"); 245 245 return -ENODEV; ··· 375 375 376 376 377 377 static const struct of_device_id aspeed_of_match[] = { 378 + { .compatible = "aspeed,ast2400-sdram-edac" }, 378 379 { .compatible = "aspeed,ast2500-sdram-edac" }, 380 + { .compatible = "aspeed,ast2600-sdram-edac" }, 379 381 {}, 380 382 }; 381 383 384 + MODULE_DEVICE_TABLE(of, aspeed_of_match); 382 385 383 386 static struct platform_driver aspeed_driver = { 384 387 .driver = { ··· 395 392 396 393 MODULE_LICENSE("GPL"); 397 394 MODULE_AUTHOR("Stefan Schaeckeler <sschaeck@cisco.com>"); 398 - MODULE_DESCRIPTION("Aspeed AST2500 EDAC driver"); 395 + MODULE_DESCRIPTION("Aspeed BMC SoC EDAC driver"); 399 396 MODULE_VERSION("1.0");