EDAC, altera: Generalize driver to use DT Memory size
authorThor Thayer <tthayer@opensource.altera.com>
Thu, 4 Jun 2015 14:28:45 +0000 (09:28 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Jun 2015 16:16:07 +0000 (18:16 +0200)
commitf9ae487e04370e229a96c83a8c86510299712192
tree1f391d0be4bd1bd87ab4ec4a7dcfebaf9f2e9399
parent99e21fea47f425f65f727c96ed8b64a7ac18e5cb
EDAC, altera: Generalize driver to use DT Memory size

The Arria10 SOC uses a completely different SDRAM controller from the
earlier CycloneV and ArriaV SoCs. The memory size is calculated in the
bootloader and passed via the device tree. Using this device tree size
is more generic than using the register fields to calculate the memory
size for different SDRAM controllers.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: devicetree@vger.kernel.org
Cc: dinguyen@opensource.altera.com
Cc: galak@codeaurora.org
Cc: grant.likely@linaro.org
Cc: ijc+devicetree@hellion.org.uk
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: m.chehab@samsung.com
Cc: mark.rutland@arm.com
Cc: pawel.moll@arm.com
Cc: robh+dt@kernel.org
Cc: tthayer.linux@gmail.com
Link: http://lkml.kernel.org/r/1433428128-7292-2-git-send-email-tthayer@opensource.altera.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/altera_edac.c