Message ID | 20181122001142.19187-10-chris.packham@alliedtelesis.co.nz (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE1225A4 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Nov 2018 00:29:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBCC62BB19 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Nov 2018 00:29:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF6962C805; Thu, 22 Nov 2018 00:29:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 700962C809 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Nov 2018 00:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hQeHM/50U7/HBZSFe7PX2VnKWJNdeqbB22CQa7vKr2I=; b=Q2hOzWr49/Ozyo 65gC3x6NbpzWdNKI9L3qft6r8D+3hNFsOV94/Rogxdm2eDA98NsBJvtDJ8KyJM7ELDz03LSY181dz hGTfan67KJZ+OEorHkK8IRJENIqwpJjO+5c7ojVUjApN4H10LykZKhbwXfLN7ZasNNKvSXTkXKeK6 zdcLawMZJODDXI3HIuhNMaOqcsrxi4kijtnP9x3MxWhKBWgKCn5tLtvkU3UUfmgMsTGkg7bM6AZ08 VmOV0o1/py8ujpH7kn1kT7Afty60/WmgLAk1D9aNNW3AJYj880B6C9D1cCjGlEKmA6kE8smVueEBW TTu4pVSabUYR4yqepAvQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPcsT-0001MT-Dd; Thu, 22 Nov 2018 00:29:53 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPcc7-0001cS-Lw for linux-arm-kernel@lists.infradead.org; Thu, 22 Nov 2018 00:13:02 +0000 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 4E69689154; Thu, 22 Nov 2018 13:12:06 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1542845526; bh=7pBgkn6yqsFB/7HrIpaxbvTidNEiKjOKcblyTutVUkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Yea8vnYOyEF8mTL1ayviFy0wKY6F0bm0ib1jOEieypiO2WUt+bMj/+0b5aSndWVHf 4zt5XNp6MsUuYHNJWlZOtYjBY5RtCxD+huzZeXI7cpeFqOLkSPqDZZHPZmNm7X1T5I /uI24ZcU0hmufRBAVflYY5ZV23b7i4MAfj/DbWaGPPZ2RnCMKqiN5paFqgRXJyo02U 1tF8VcCt2N/JqYx2YRcwNvYUhPsIJ4HmzVZW17BT+QOExngjRH/bONK3hn4xuaH7zH AFh8nWBGjJT+mAk4T9zutTrY5DCarY119iMXUwWMHbK2zxQfzDbKx6C8vtsaf8uP5G KBx+nv+5k2g4g== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121) id <B5bf5f4550006>; Thu, 22 Nov 2018 13:12:05 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id AB57113EFF0; Thu, 22 Nov 2018 13:12:08 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 422EA1E08D9; Thu, 22 Nov 2018 13:12:03 +1300 (NZDT) From: Chris Packham <chris.packham@alliedtelesis.co.nz> To: linux@armlinux.org.uk, bp@alien8.de, arnd@arndb.de, jlu@pengutronix.de, gregory.clement@bootlin.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 9/9] EDAC: armada_xp: Add support for more SoCs Date: Thu, 22 Nov 2018 13:11:42 +1300 Message-Id: <20181122001142.19187-10-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181122001142.19187-1-chris.packham@alliedtelesis.co.nz> References: <20181122001142.19187-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_161259_914118_2C780826 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, Mauro Carvalho Chehab <mchehab@kernel.org>, Chris Packham <chris.packham@alliedtelesis.co.nz>, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
EDAC drivers for Armada XP L2 and DDR
|
expand
|
diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c index 3759a4fbbdee..7f227bdcbc84 100644 --- a/drivers/edac/armada_xp_edac.c +++ b/drivers/edac/armada_xp_edac.c @@ -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);
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: Chris Packham <chris.packham@alliedtelesis.co.nz> --- drivers/edac/armada_xp_edac.c | 5 +++++ 1 file changed, 5 insertions(+)