Add PPC/4xx "ibm,sdram-4xx-ddr2" EDAC MC Driver
PATCH v3 1/1 Add PPC/4xx "ibm,sdram-4xx-ddr2" EDAC MC Driver
This adds support for an EDAC memory controller adaptation driver for the "ibm,sdram-4xx-ddr2" ECC controller realized in the AMCC PowerPC 405EX[r].
---
At present, this driver has been developed and tested against the controller realization in the AMCC PPC405EX[r] on the AMCC Kilauea and Haleakala boards (256 MiB w/o ECC memory soldered onto the board) and a proprietary board based on those designs (128 MiB ECC memory, also soldered onto the board).
In the future, dynamic feature detection and handling needs to be added for the other realizations of this controller found in the 440SP, 440SPe, 460EX, 460GT and 460SX.
Eventually, this driver will likely be evolved and adapted to the above variant realizations of this controller as well as broken apart to handle the other known ECC-capable controllers prevalent in other PPC4xx processors:
- IBM SDRAM (405GP, 405CR and 405EP) "ibm,sdram-4xx"
- IBM DDR1 (440GP, 440GX, 440EP and 440GR) "ibm,sdram-4xx-ddr"
- Denali DDR1/DDR2 (440EPX and 440GRX) "denali,sdram-4xx-ddr2"
Patch v2 removes the 'type' field from the of_device_id match structure to reflect the corresponding removal of the 'device_type' field from the device tree node.
Patch v3 incorporates feedback from Josh Boyer regarding compliance of switch statements with Linux coding style, removing gratuitous printk wrappers, and using the DCR mapping from the device tree rather than using a fixed mapping.
drivers/edac/Kconfig | 9 + drivers/edac/Makefile | 2 +- drivers/edac/ppc4xx_edac.c | 1414 ++++++++++++++++++++++++++++++++++++++++++++ drivers/edac/ppc4xx_edac.h | 172 ++++++ 4 files changed, 1596 insertions(+), 1 deletions(-)
drivers/edac/Kconfig +9 -0
@@ -167,4 +167,13 @@ config EDAC_CELL Cell Broadband Engine internal memory controller on platform without a hypervisor +config EDAC_PPC4XX + tristate "PPC4xx IBM DDR2 Memory Controller" + depends on EDAC_MM_EDAC && 4xx + help + This enables support for EDAC on the ECC memory used + with the IBM DDR2 memory controller found in various + PowerPC 4xx embedded processors such as the 405EX[r], + 440SP, 440SPe, 460EX, 460GT and 460SX. + endif # EDAC
drivers/edac/Makefile +1 -1
@@ -33,4 +33,4 @@ obj-$(CONFIG_EDAC_PASEMI) += pasemi_edac.o obj-$(CONFIG_EDAC_MPC85XX) += mpc85xx_edac.o obj-$(CONFIG_EDAC_MV64X60) += mv64x60_edac.o obj-$(CONFIG_EDAC_CELL) += cell_edac.o - +obj-$(CONFIG_EDAC_PPC4XX) += ppc4xx_edac.o
drivers/edac/ppc4xx_edac.c new file +1414 -0
1,414 lines not on this page · raw message
drivers/edac/ppc4xx_edac.h new file +172 -1
173 lines not on this page · raw message
1.6.0.5