From patchwork Thu Jan 21 17:34:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 8083691 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 B01629F440 for ; Thu, 21 Jan 2016 17:35:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B86AD20357 for ; Thu, 21 Jan 2016 17:35:21 +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 C047E202FF for ; Thu, 21 Jan 2016 17:35: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 1aMJ7J-0007eK-Hh; Thu, 21 Jan 2016 17:33:53 +0000 Received: from mail-by2on0061.outbound.protection.outlook.com ([207.46.100.61] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMJ6w-0007P4-7p for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2016 17:33:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=inC9XiVVkecOW3FlNjoDrYuNz+rHi1ZPdfEAOmIb0x4=; b=fdbrS1UKKeFnoxDK63RiYxcpSruFjlUTIenF5LrSf78VcUs2NSOPQxaHvnat+xGderYfeZtAVoB3Eh7hglxLUy1UHH/QUUa/ZiGQcULI5G9AHpmzAgh7pO69vKfI3F2qpYoPFpGDnmyt+t4p40LA5bZMH39alGS/kGevRpL1TrY= Received: from BLUPR03CA005.namprd03.prod.outlook.com (10.255.124.22) by BY2PR03MB427.namprd03.prod.outlook.com (10.141.141.146) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 21 Jan 2016 17:33:06 +0000 Received: from BL2FFO11FD023.protection.gbl (10.255.124.4) by BLUPR03CA005.outlook.office365.com (10.255.124.22) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Thu, 21 Jan 2016 17:33:06 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; vger.kernel.org; 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.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BL2FFO11FD023.mail.protection.outlook.com (10.173.161.102) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 21 Jan 2016 17:33:05 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.205) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 21 Jan 2016 09:31:47 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=inC9XiVVkecOW3FlNjoDrYuNz+rHi1ZPdfEAOmIb0x4=; b=fdbrS1UKKeFnoxDK63RiYxcpSruFjlUTIenF5LrSf78VcUs2NSOPQxaHvnat+xGderYfeZtAVoB3Eh7hglxLUy1UHH/QUUa/ZiGQcULI5G9AHpmzAgh7pO69vKfI3F2qpYoPFpGDnmyt+t4p40LA5bZMH39alGS/kGevRpL1TrY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.altera.com (64.129.157.38) by BY1PR03MB1482.namprd03.prod.outlook.com (10.162.210.140) with Microsoft SMTP Server (TLS) id 15.1.365.19; Thu, 21 Jan 2016 17:32:47 +0000 From: To: , , , , , , , , , , Subject: [PATCHv8 4/4] ARM: socfpga: Enable OCRAM ECC on startup Date: Thu, 21 Jan 2016 11:34:28 -0600 Message-ID: <1453397668-32094-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453397668-32094-1-git-send-email-tthayer@opensource.altera.com> References: <1453397668-32094-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR08CA0036.namprd08.prod.outlook.com (25.163.94.174) To BY1PR03MB1482.namprd03.prod.outlook.com (25.162.210.140) X-MS-Office365-Filtering-Correlation-Id: 011ce886-dcfb-43cf-2bfe-08d32288ec25 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 2:6ttdOSJV40gs51c4qBH4XZDA186MsQ0bl/56IgqR/gfxLd6saZEAAjl6ygkWFzJa5az6rj48Mq5aeQHY80op0vKJw8KNcm3g5xeIav/Ax7JL4Wd233PV19Ccjvs/FKE0gzMzrwER1MwFIZsi2KDsGnn5skhE9Y3TwwZh9Bk7PCiWP4FMn1/Ecm2+eXRR7B9c; 3:yvAuosEYoFBestgNfHIQCMJDkDItqNXYJMIpQBlyfLdeLJyfR67yo6Y6nTiLs9cRyNCChl42Lh5UOTjn1snS3FROy0TUtvSV0J3ziGBiWmn+KuQd2EMF28tvYXXFUEJp; 25:9M9QrR6zw277U3RvF8X7KktvC5oziAlEEn3Td6KNlESqedmov0swXVWo0lc1zrTDwXfjlKJeYUJVUeGFJ0yJOwPB8B/WvpqXA72v81DcqJ+jkFWApNKKGTuGI+9EVmcXlPMBmdZ2+6ccpJUQkVxvzWMOqq1kHpeyd5K55jsY4fu04g6pcOIn6IyC5Gt5zvybnRAEXcF7djI8o2uN+JlS0vQbwPBRzgkSw0wsrbBP+vKsFe6kQe48rAq/OGiFHDfL; 20:2qTY4V8PbKi6nqKNhlKpYRjnBafZ51OhP2KgUvqissjh0WvPBygHz4XjVTeksvoCtGZllxsUPLMoJQtGBHe3iekMmtBTkUvEZ3lWDPR8ZJGgHmzJ7Y5uoNJF0lIOXZFRoKoL0KFWvwefKh2iBkRCfFRTagFWKCXYTwqa84rKILk= X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1482; UriScan:(80048183373757)(204874498639787); UriScan:(80048183373757)(204874498639787); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:BY1PR03MB1482; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1482; BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(520078)(13018025)(13015025)(8121501046)(13017025)(5005006)(3002001)(10201501046); SRVR:BY2PR03MB427; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB427; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 4:icrBoHi9HMOjUmtkSsihGbV6H5o7+rGPCx+Sf1gTS4NP7kXLRKMx5+i4wbvXtHV+LSJFhohVRuT79PRy0NAPE3Ch9LzpqZnui8TGviCX+Mdh6pIhf2Krv9Ib05xuAjdbJwAEufqs2WC4AqPv1Tt/xFJdgv0JI/n9EdC8SI/7ZeZ34EMV7YXbX4Fo41emFUNd1kylTJ9rLXnJNOuK+1qHBqnEmAsOBeQxvhxuHJ6i3ObUY3iMNt82AuX9fQ/cKMRYp2wmqIWQCnyWZG363PSwv6kDSMdVucz/OZrkrE4M84eMBYzFZ+XdyxOfjNCKxbVyRlWhQkN7aCUqw+BORh8B8IHZwDkAmCdSywco7eL2GcHcPbHElCFIayrIoxemtLLIQ+6Nl0fYsxikDWxHe43Ra3h+AVmKtvwzp/Yr8xu/BS4VIjGGDy6T9lGiN19cque8BmrSF6bjaqvwnwxhXnjiew== X-Forefront-PRVS: 08286A0BE2 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(586003)(2950100001)(47776003)(92566002)(4001430100002)(1096002)(575784001)(5004730100002)(42186005)(3846002)(86362001)(4326007)(6116002)(106356001)(2906002)(15975445007)(77096005)(105586002)(189998001)(19580405001)(50226001)(5008740100001)(122386002)(229853001)(53416004)(33646002)(5001770100001)(50986999)(97736004)(86152002)(19580395003)(107886002)(87976001)(2201001)(5001960100002)(40100003)(76176999)(5003940100001)(101416001)(66066001)(50466002)(81156007)(2876002)(48376002)(69596002)(921003)(2004002)(1121003)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1482; H:tthayer-HP-Z620-Ubuntu.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; BY1PR03MB1482; 23:1VE3XNE56WY3u5kAz5q+OedRdMxcKQkuMQSLvAr3R?= =?us-ascii?Q?6f4WSx6KZ3ysjiN3Tcx8lPXcIOti+xXuxtiRUlgaWNWvGvjPkfDZ4zGRfGlP?= =?us-ascii?Q?HD7SkpnIHsN6upYkVlCn4tLFa1LQN+nuQis4qTGvMSYUAzYDJDy0DJITlQqv?= =?us-ascii?Q?zQnoJPDpiHCYEmOkVbnLfUgjSjxK74utR5KszjQXrETtIZ2Hr/WT9Y9KTBTE?= =?us-ascii?Q?LAELibhDMp42yDlQ9An6K/FpqS51ni9bX4mKjRDBWPqIR9r9e06a0sLXmqX1?= =?us-ascii?Q?sjRKlpAhlCrcWdbNeugg7e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teJGQ2fWNgjrEsgY1XxQTJbcbk4AVmXeFkDkql5Ce0kqUK9SNMbiGju?= =?us-ascii?Q?vso1fix9nYSToHuo8BrJXTo2YEORNrhhcpZKiXxYbxhcjvyvgsFoPV11kSEo?= =?us-ascii?Q?Rhn5bEhG5wu5VL6DtUDLxpsolOSMrpArux4R2ni5YeL?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 5:A1MC4Mx/n6ij7dnVVl6eeVY6I/HN3OmgSiaBhwOyiNq25kgfA1pNUzajJ8B5fpnYPCU7EmqJCWjXa55PEDZagd26hVWr+4n6AzutXcRxbnJtwPFMS1LrlK2Qu0XpfJrzVwOZwdXfVSn9ZZLO8DaJEg==; 24:jiIjusnT0CT69Q/t7F36+Nfi3Mq/WjtrP38GHJvMj7Y7+adsNKetynvVOSbtspk5K6MpT4MyizQl63rjlbDVlpjH8XjOGGSEQVrnNSLV4r4=; 20:/sccF7tVLh8gyk7OBFtZcjPAj8CpT32Yoyitro38pGJa3FselrXVVV9rQwfipW4ktg0dTddVFI4ac2XZbiTmMRAsY+1rx2zPJS4ys8nHunl2FPfUJYh0nW0r0YswZzQaMhKSnjH3dne2Ign7eIZgYXKMlk8xJBVHtU2qdy1a36E= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1482 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD023.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD023; 1:S1Q3MyksHmKo72MED5e2fOqlRK0rjfEAs89i4LHy7XzwA1ckYCjzKEq/l2MpG3n3fZPHAbzcd4BItkd524r0HeTno7tSOYWbX9eJPzrZDLnP2urO09880fIbMFckpuaOYY8AxcnOduKlRZ4sD520XHTfVuIG8gEif+RXzRwpDW0IOdiqhUPql5xngiFJU/smKQi14vJDg026cRbw/6tUBuGUOSj1sBtf0cLdpohGrPF6Yp5XtRsG8WbUJaq6xq4qqsqHP/8noN2WUX3X0S58LxHgHK6v8NqtE7rnhHJ95Yw6DidNjtxJBUhrHTr5NY8U5AHXAN4U8bEBlLtTeCrqiXDZ4y2OUJ/YaIfrHd2oSjW3VXJJIrD8INrAF4ot2aWsi6CectcocQZU1N0Sz3UGwVW6+opiiJP2cf6AQVrfn4twPOQsjBtRRm6E9bX+iSgfH0WRhlK3mjYiQ8+Fo4lFnQ== X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(86362001)(1096002)(5003940100001)(586003)(97736004)(33646002)(50226001)(229853001)(87936001)(19580405001)(2876002)(50986999)(5008740100001)(86152002)(76176999)(47776003)(85426001)(6116002)(106466001)(66066001)(50466002)(575784001)(6070500001)(19580395003)(15975445007)(4001430100002)(77096005)(122386002)(2201001)(189998001)(40100003)(5001960100002)(2906002)(5001770100001)(105606002)(3846002)(48376002)(16796002)(1220700001)(21840400001)(956001)(81156007)(5004730100002)(107886002)(92566002)(6806005)(53416004)(2950100001)(4326007)(11100500001)(7099028)(921003)(2004002)(217873001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB427; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB427; 2:m+/lkX5rNpGwa6cKGvuK4+lUOFNFYUENBm/HdnANVzHCR4ZeG7Ov2WhUr0BA73Ire3ZD6nhIa8+VKQDNDzxwF8VRlPpjrSPUBRVP7fxZp23KMZsEuJuK68ANl8lR9tFYg/wp3649BGdYMuUA2e63iw==; 3:7eJm6Y/mzn6CL41IxHkm0yrOD1G6AEhZkRgAMS4wDgCM6ExRo6vUmvgQMkMjlBtyFLwzyQFS9wQnjzoUNqeZLJkZNwsN5UBnYJ8BLgqR5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wC5HPbStS7bz3wDXBdw3?= =?us-ascii?Q?hMVHu7GNUdQYensQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB427; 5:CxfKLQKZyU+IGUKQrfTrffr1LGnhRcwjJg5/zddFe+e1njVdDyuDXiR8AaBcY5c7zoaX1IbA9DMc7HOFQtnK3jfa2aTfewGsiC1rSfjukrX50wu51WVhKkFeaMOhGRrFzqosrJXkX024i0+lJT6UpA==; 24:iBe2uPjTsxOut1cfxKU/JUywdqZnhiP7IPxWo2EHinOldfWdwxuJaPFp7bBxAsbMw8PLQG+eVYchVQJAvZGzLH+nQghH6UQH0dvTqSaoCIQ=; 20:yRVlAT/y3+9e1o2DD1KBkahYyC6UwP9Cv1G/kNdrbDQ97yCO6qeUSATFItdqhC/nUq6dC/rurGKB4A0FZWFGhEZ/zl2fKszwI3EQYqPazvSxNIEkiQF3vuzwCysj+64Zzg6/yyKDu3E5c/vd/76bRmAcH0njRku0yx3rJ23cVjI= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2016 17:33:05.8539 (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.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB427 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160121_093330_570165_AFE1252B X-CRM114-Status: UNSURE ( 5.74 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tthayer.linux@gmail.com, tthayer@opensource.altera.com, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.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.1 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, 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 --- v8: Address community comments on strings. Fix match strings based on maintainer feedback. Update year in header. 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..3791335 --- /dev/null +++ b/arch/arm/mach-socfpga/ocram.c @@ -0,0 +1,50 @@ +/* + * Copyright Altera Corporation (C) 2016. 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,socfpga-ocram-ecc"); + if (!np) { + pr_err("Unable to find socfpga-ocram-ecc\n"); + return; + } + + mapped_ocr_edac_addr = of_iomap(np, 0); + if (!mapped_ocr_edac_addr) { + of_node_put(np); + pr_err("Unable to map OCRAM ecc regs.\n"); + 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)