Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23d103ae authored by Chris Packham's avatar Chris Packham Committed by Russell King
Browse files

ARM: 8891/1: EDAC: armada_xp: Add support for more SoCs



The Armada 38x and other integrated SoCs use a reduced pin count so the
width of the SDRAM interface is smaller than the Armada XP SoCs. This
means that the definition of "full" and "half" width is reduced from
64/32 to 32/16.

Signed-off-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 7f6998a4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -332,6 +332,11 @@ static int axp_mc_probe(struct platform_device *pdev)

	axp_mc_read_config(mci);

	/* These SoCs have a reduced width bus */
	if (of_machine_is_compatible("marvell,armada380") ||
	    of_machine_is_compatible("marvell,armadaxp-98dx3236"))
		drvdata->width /= 2;

	/* configure SBE threshold */
	/* it seems that SBEs are not captured otherwise */
	writel(1 << SDRAM_ERR_CTRL_THR_OFFSET, drvdata->base + SDRAM_ERR_CTRL_REG);