From patchwork Tue Oct 27 20:59:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 7502721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 676B39F327 for ; Tue, 27 Oct 2015 21:09:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6022620981 for ; Tue, 27 Oct 2015 21:09:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C66D42097E for ; Tue, 27 Oct 2015 21:09:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrBTB-0005Ss-51; Tue, 27 Oct 2015 21:07:49 +0000 Received: from mail-bl2on0074.outbound.protection.outlook.com ([65.55.169.74] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrBSf-0004yo-I1 for linux-arm-kernel@lists.infradead.org; Tue, 27 Oct 2015 21:07:19 +0000 Received: from CH1PR03CA002.namprd03.prod.outlook.com (10.255.156.147) by BY1PR03MB1498.namprd03.prod.outlook.com (10.162.210.144) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 21:06:54 +0000 Received: from BN1AFFO11OLC004.protection.gbl (10.255.156.132) by CH1PR03CA002.outlook.office365.com (10.255.156.147) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 21:06:53 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; lixom.net; dkim=none (message not signed) header.d=none;lixom.net; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 21:06:53 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.143) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 27 Oct 2015 14:06:15 -0700 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dinguyen@opensource.altera.com; Received: from linux-builds1.altera.com (64.129.157.38) by BLUPR03MB1364.namprd03.prod.outlook.com (10.163.80.30) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 21:06:40 +0000 From: To: Subject: [PATCHv7 2/2] ARM: socfpga: Enable OCRAM ECC on startup Date: Tue, 27 Oct 2015 15:59:41 -0500 Message-ID: <1445979581-8080-2-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1445979581-8080-1-git-send-email-dinguyen@opensource.altera.com> References: <1445979581-8080-1-git-send-email-dinguyen@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR13CA0019.namprd13.prod.outlook.com (25.162.30.157) To BLUPR03MB1364.namprd03.prod.outlook.com (25.163.80.30) X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 2:VkEN9YVorhLK2TX4ad6PMTh4LiBtIj6TkWI0wce8ohsXLcHfJQg4kkKAuTlVNr2F4B4X1Ifxjs8gemeDk+J7ywCrnXtsycDOXecFJMvXpVso8I5OKjzMAMY7eBRetJFZ0fnfi10AOxv98wnv420/1TVzg2/asD3a3P91V/X6T8w=; 3:jhlyR/n7z1vjcyJ0aZa1PCwCwsXWWSDXYhGr8iK6vZerYEp3SrspPIktwMVuggZkSwhdYsU8XLB2oeyZmvzLMyQBBWK47j04YOinkko0yW3M9w3Sl9ppOBBeYNQHhZ1UWjqAFxl2QNUCQp0fVyNeVw==; 25:2x3/qmRlk59CjANqtO5429nvF3hSU05iConSlfYNI2F8mRRKnFpKRhet/wwI54VkkxmmEyuIrAWvF9vP8DaQbEqjTH9ylSwWioMhx6rf4/m7Xu0cS8BW3Ot2wGijl0IgHLdE0ikPGP1hr9vB5XU0MHZx5vUoh5WsiMti02yvK7YRM4AKz+jMb9fXyKWGzdevGYh6HO3NonjVuyQQwhDUjVaR/IB/KGCe1PHpcfBJN9m+rASIQboGjNljMAd6+L0nRl7hROkUtNAKSPn2Eun6xw==; 20:vC+O7zfV6HhWqXRbkQvlnke9y+VbeCJTCHnwhIg/nLKKc5yKfZNNBEtO7D3MIQCRzhMh8EgMeIBTY6eU7O6RgdR5R4IT3XR86EO/YwKs0eEQ6jrjJw2pSiXXJctqYlOkxla6bgQMqXwFrWeV7rNh5WOx2kM1EI9yLP+UPUsBIRs= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1364; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757)(204874498639787); UriScan:(80048183373757)(204874498639787); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501036)(102215026); SRVR:BLUPR03MB1364; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1364; BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501036)(3002001)(102215026); SRVR:BY1PR03MB1498; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1498; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 4:pLT+V9BsVSKPQu0GSBpCrS5ZH44hfLLb6hRXoq4r4/gTptkkye67Y9wVbWG5I6LBzUjMaX4lsm2+wkGBAnSGzMPz2bp/RQZp6uMNxLF6I7ljQZPYqSbMQPwBpa79a6TjOJkFVIHMZ55T0k5osE9tLfwdlt0i6oJBOgKYmqSG6tCgBN4A0corSYp+tK2b8EXLSidQVQq6E3sWpJvNK5MHwEgLd3hVW5jzguZGTSm3NUpjn16YCRcFqVP1EO1TWDEVClbPmrufQdy82XUFaAEatreG9z2jkPps7d08WheDH51KhvYGDjbwV9Hv6QT+u856R49fTQBveiKfbN7r0oiJLm0udQ9tK2A32kemuawssAYhLwl0VcOBJ8qjQUnwehJAvTReaZqqFXGas24gi4XfIQ== X-Forefront-PRVS: 0742443479 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(2351001)(47776003)(110136002)(33646002)(19580395003)(5007970100001)(105586002)(107886002)(66066001)(106356001)(5003940100001)(69596002)(76176999)(50986999)(5001960100002)(19580405001)(5004730100002)(48376002)(101416001)(50466002)(87976001)(15975445007)(575784001)(4001430100002)(229853001)(42186005)(92566002)(53416004)(50226001)(5008740100001)(86152002)(97736004)(122386002)(77096005)(189998001)(86362001)(81156007)(40100003)(2950100001)(2004002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1364; H:linux-builds1.altera.com; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BLUPR03MB1364; 23:IX+WQF8X2ioUHNn48fZiHwLGciCfQKcXbE+oZh1xw?= =?us-ascii?Q?m++1aXfW4eLc7qPoZ5jsHLj+8Rs4xGJMwErw/CbfOpx0ECMW2eqWNUtYGge8?= =?us-ascii?Q?CI3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BN+E43nN4j3/EEKCKMrrUC?= =?us-ascii?Q?856/GI6Brp0PaVrc2uHXzCde412PexAZf7q4Ren6wor1dTuUEih4SldTSZl1?= =?us-ascii?Q?JXWyyk7ETRYqqiB0yKBzYIVGn5UKyNrx+SAnlnNGcDg4+P/8xOaglPy/N0nl?= =?us-ascii?Q?w22s1yn2p1vwrjmveF5Szt0UU+dTtftp4s4nqhLhjhA6Dq8CJmv7f7dER0g7?= =?us-ascii?Q?63WnQnzpxHWXgU=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 5:hi5vmt5oEN/uJUqBG394pT+1C0wvY6G6wjNJcMWK3YkZtG2NB/r7VtVSwycnO1ixQKD5j+daisToHoh9GDJ2GwC9V4TTU+VNndbIlrVbLfTJ+3iSbwdVwcqrBzF/4WohpXDd2ibM8TW++/XdhNvZ7g==; 24:k/pRZn7m65EFTSIOgofe1yRYBme3wP7py/p5R8nsWfNtN/WGI5xfGPmU5ypePhfgCFJ3UPJjvj2RuyWjkYTJ6tfItNMcTr/AyRhBrTz76xQ=; 20:LUesNloK4Ps+Vz/DE/ZJ3+JoDjCwhyJvHIBmffAmPpAtzxLUdI5uoBYZ5WH7DgWKGmnNZlZJtfi4SEHVn3yAFET4RoGheU1tWj6AzJ0e/AckUzJEwelhH04NHoJO4Hgti8O8ImmLiLnAiyofV+gdLw0QRpEcQeQU5Cu3MkBb+sM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1364 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11OLC004.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:nSx3dm4V68fgHuc5SKy1OR9o35Jf74AVjFz/kDYxF4q523Bc2sF8I0U4sQ7VE9rq+KFB9wjDVISFACBnEi9055QhsPqtP/sJuYVGAzXBAa0rq4L5IoYQzMXLMqkyt2cXEbv6AAkf5pCXEjbz+DA0VWE2XLlAvPWL71czVdFswDjVRtpXl67wq/mXhpjdxk3ai4kSLKNkhE+UtiW4+rnr/FYwLzyfriUVK+Qk+WZjvlMC5nd7D5vviaZJrS4BZKGIPUHjojfQvjG75utGhKFFq4SHc++wqFzTkxm56q2nrCm9W8Yzcb0bRYgWMx68m5ynT5ZqqKiQdcntIlLTwF8Ozgwe/Agb/tBWqQUkOf01xrr+qnZGsl/OhvAWCUs6B6h5 X-Forefront-Antispam-Report: CIP:66.35.236.236; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(97736004)(47776003)(6070500001)(2351001)(81156007)(5001960100002)(5008740100001)(110136002)(107886002)(50226001)(5007970100001)(189998001)(11100500001)(5003940100001)(5004730100002)(16796002)(6806005)(229853001)(86362001)(4001430100002)(19580405001)(575784001)(19580395003)(53416004)(15975445007)(50986999)(86152002)(106466001)(21840400001)(2950100001)(33646002)(40100003)(50466002)(77096005)(92566002)(48376002)(87936001)(122386002)(66066001)(76176999)(85426001)(105606002)(7099028)(2004002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1498; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1498; 2:Vdz2SL7cOvPm/s+MeuZ0qaQHYYoQgrGHW+PFGP6MBTvu14VI82A9bXOdbTF3vGG/ZBsmHyCK5SuBDiBJFZvN6MdH92XTcgCKlrcekfNrSY+HocGXJ7ErlM94f0pLWF7f9Jm+F/r6fec9b2L9mWFNASMgKVlCCeCrLZjrtBOcp5E=; 3:WWLDrbhcTYgYYYbl+JwwDhgUETIqg8/L8OI+MST2I+uBV0XVAefGfjT2YiQrsz71JFgJKWOceT4BJopDPs6PuPqBCKlyoRfcnn5W/mn13+JSAZPqDYARyFKv4Pwr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qBtVcw== X-Forefront-PRVS: 0742443479 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1498; 23:ddQ+RehgV4vAww0eXekXyQFx9TKLWW38av78GsRoQ?= =?us-ascii?Q?5MvD0OQSPIyEOOcvOMJS1pQ5kCpF3XeBdRiUvmI7s6Q3k++4ppUJMMy60ref?= =?us-ascii?Q?skKrFxWOpASpmUXDujKrJAQLIA2c+N8XaG5nWDBVAz5GPb+6nax3MSvCVk/9?= =?us-ascii?Q?AzL2xbrrcAC0zfavegqypLfg/Oi20tHInflXcnhazrmeyhfkcURhIB/S7P/R?= =?us-ascii?Q?395kmfyw8w6rlGce2EerWqx9K2K0D3ahsZeR/sM/V5eoQzZNhaAhHB0FwLQo?= =?us-ascii?Q?HPtHJ/XMXizGhLrDp4NyLGGXiyWh60XRHk/FOgIrnspwpIzO/V9K0/7Rofce?= =?us-ascii?Q?u4VKuOLLyRAncVkMa7e6o7c+e4c4R6is0ICO6jvNgL0vdb2Krox5tiSmZXMQ?= =?us-ascii?Q?s5wzSr+3ZyF+aDC15j6vu8fpbGFWnkoheMmHzbCiPjP5x1aKJ/p1FNHH7p5v?= =?us-ascii?Q?rmrjGffp9QdR1fmDyBxhSSYHPBStGUkWYwDl2SdAVEI2goPRJ515h6g2/u3b?= =?us-ascii?Q?bC6aWAWp6bgB0BI9w5ynCj3f298wJ5DAWWqAZasLZqAE3bCsuJrLbZH9eOub?= =?us-ascii?Q?xqzL/5wxYclOVPb7IwpbtDTUrBmyF1+hKwKiHBzIVw4nBX1HjUbfQiVgx4/g?= =?us-ascii?Q?APh9S1/LFCLV1w14p29+aYkVTkZnaiuQUH0f7w3KFSnM7Xrejtllr6dyKtCa?= =?us-ascii?Q?CN2/vtsJx6THOH7Lka7iewgrNa9xWOIL1zW2i/DnSkUrndmSQ1Po0i7NuCoN?= =?us-ascii?Q?qOWBBI1zmCOeCWPVMCGVEm700/rvpP9ZPKZiUco+pUzttxgZ7xsFbxuQMWo3?= =?us-ascii?Q?MQbKW57ROIORbUjwaPa1m8/jzst0BQ4dbu4DOwBbx8dBanf7J97W3cwlY2YM?= =?us-ascii?Q?ofVT3/97tIi8BW6rp512BBIFVRK6Jqh8EcKJbOmCw1Dt/gmOOdM2hviNn8Me?= =?us-ascii?Q?3DoZ7HeQHmREMrhldCvk/mXh89sD9IHxi8bmVNtuTmX1KPupDcWekqBKq33c?= =?us-ascii?Q?fTWluei9Cva40wlcJWVk7CqltBTMeskA88a8smOmq248g72if1b4qI9pDjZO?= =?us-ascii?Q?lQY0nUnuF18Z65PCoXJU+wA6y2mPzS7wlHIDTH1BXGoJJSj/jt1e7RWmFye7?= =?us-ascii?Q?AIR8clIE8bOjKBlfSPvXNXW1DAFPbk13MeL8UQRoFbkcWFa7XlOgTWNYX9bG?= =?us-ascii?Q?P6LvkmUkCBXBtXkkHsy62dhIPYRfw6TYuGcDf2L/qhP9uXwtj24OCZh0yD9r?= =?us-ascii?Q?rzZ2FggIC3AQZqBccAL/ooDS1NHMfrPHlij9XgBlfCmK9RnVwR/f2Dz3lWqc?= =?us-ascii?Q?PWXFzpiO65zuvVSyMtz/VrP5swj/fcdGz0Tekqihls0d1Hcg8/tuDGEkHo5f?= =?us-ascii?Q?re1N7peTtTFw00X3+yilZt8B9k=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1498; 5:EtrREZBVdLYcpgRY9SBq0tqc5CPlt+GWOisU39PCA0hXdtXOAdemMvz0Rt1sQmTo3p3VuCYW//78BM9tEoDz8QGtNJUwvLghhMZElmClzTTvZmMrDbsWTvAF/pTtTdhtPfftN5JPLNcLDAZW08qvXA==; 24:hD0qJBLIIBQgIn1ahiI0vbHZkTDlQINofNTbEL+XHuwUDIwS8R68Lw/1RQqz+vR0PMzwN64cgpyHHvWk6zNgBBSIKuYWIx34+W5f0ZkW6k0=; 20:MB+KPjUMde3kv50hyrhQh4ZR1UTmY6hzBRRilyWoeO0koTgtei4mO1KTqjChsrfNY1PzB5V/5PF/Cy/tEPenHgqHr9aP9VYOXR/N2dW5cb9IzG0eYQCDO3ZCjz6/NrCXQgzNMnE75TrA7LkJOkG44KVaCfBChb2UdB2fHHcv774= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2015 21:06:53.2945 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1498 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151027_140718_057974_92D81165 X-CRM114-Status: GOOD ( 14.03 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, dinh.linux@gmail.com, arnd@arndb.de, Thor Thayer , olof@lixom.net, Dinh Nguyen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen This patch enables the ECC for On-Chip RAM on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer Signed-off-by: Dinh Nguyen --- v7: enable OCRAM ECC during platform init v6: Implement OCRAM discovery changes from community. Add of_node_put(). Remove be32_to_cpup(). Use __init() which allows removal of .init_machine(). Update year in header. --- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/ocram.c | 50 +++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 3 +++ 4 files changed, 55 insertions(+) create mode 100644 arch/arm/mach-socfpga/ocram.c diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index e9ab7c9..ed15db1 100644 --- a/arch/arm/mach-socfpga/Makefile +++ b/arch/arm/mach-socfpga/Makefile @@ -6,3 +6,4 @@ obj-y := socfpga.o obj-$(CONFIG_SMP) += headsmp.o platsmp.o obj-$(CONFIG_SOCFPGA_SUSPEND) += pm.o self-refresh.o obj-$(CONFIG_EDAC_ALTERA_L2C) += l2_cache.o +obj-$(CONFIG_EDAC_ALTERA_OCRAM) += ocram.o diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index eb55d66..575195b 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -37,6 +37,7 @@ extern void socfpga_init_clocks(void); extern void socfpga_sysmgr_init(void); void socfpga_init_l2_ecc(void); +void socfpga_init_ocram_ecc(void); extern void __iomem *sys_manager_base_addr; extern void __iomem *rst_manager_base_addr; diff --git a/arch/arm/mach-socfpga/ocram.c b/arch/arm/mach-socfpga/ocram.c new file mode 100644 index 0000000..336e165 --- /dev/null +++ b/arch/arm/mach-socfpga/ocram.c @@ -0,0 +1,50 @@ +/* + * Copyright Altera Corporation (C) 2015. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +#include +#include +#include +#include +#include + +#define ALTR_OCRAM_CLEAR_ECC 0x00000018 +#define ALTR_OCRAM_ECC_EN 0x00000019 + +void socfpga_init_ocram_ecc(void) +{ + struct device_node *np; + void __iomem *mapped_ocr_edac_addr; + + /* Find the OCRAM EDAC device tree node */ + np = of_find_compatible_node(NULL, NULL, "altr,ocram-edac"); + if (!np) { + pr_err("%s: Unable to find altr,ocram-edac\n", __func__); + return; + } + + mapped_ocr_edac_addr = of_iomap(np, 0); + if (!mapped_ocr_edac_addr) { + of_node_put(np); + pr_err("%s: Unable to map OCRAM ecc regs.\n", __func__); + return; + } + + /* Clear any pending OCRAM ECC interrupts, then enable ECC */ + writel(ALTR_OCRAM_CLEAR_ECC, mapped_ocr_edac_addr); + writel(ALTR_OCRAM_ECC_EN, mapped_ocr_edac_addr); + + iounmap(mapped_ocr_edac_addr); + of_node_put(np); +} diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index dd1ff07..7e0aad2 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -61,6 +61,9 @@ static void __init socfpga_init_irq(void) socfpga_sysmgr_init(); if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C)) socfpga_init_l2_ecc(); + + if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM)) + socfpga_init_ocram_ecc(); } static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)