From patchwork Thu Oct 4 15:35:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 10626357 Return-Path: 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 62C7D1731 for ; Thu, 4 Oct 2018 15:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 501EE29174 for ; Thu, 4 Oct 2018 15:41:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43507291FA; Thu, 4 Oct 2018 15:41:41 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 7C77829174 for ; Thu, 4 Oct 2018 15:41:40 +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=SDCnCpM99fYmznU5XZadkQyGK41vYF/ydUZZ9va4rqU=; b=YWh28x9MKvMvp5 0/CYGCErrLDxu4uLbTh0iWFqhx0Y7C2UAgoiy/l0wESHJzdQTAtcne6YfaHhyL6LyqblZuMqXxVlR uwR935t6qQSMAIo2bejzvHBozQYHdPcBniMybrroBdBk+Tj2/IPYpxR8tY03IKXd4g0g1/Ip+ucti uYPvxLi/l3BcZBpMB6HdyRemppnXf6mG3FqHCRsM1G5UsHTxCyotiY5Ne7XYk3lcDw515OINpVJ1A pAv4AnWlv6MuFvk/L3tITnNiBxlYKBCJiS7mgkVb2m7MHnRJFhxjyxf/HPGABdvBk4Y+FNg0IWPRN 3+Ng7ot89qL8+WeSjjWA==; 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 1g85km-0000DB-A5; Thu, 04 Oct 2018 15:41:28 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g85gY-0005mX-2f for linux-arm-kernel@bombadil.infradead.org; Thu, 04 Oct 2018 15:37:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZCZY73Xk3ZmXiimGXMWTNBwnmHabA+H34FtKHqpqPuU=; b=A5eTdCKAnVXsrQWeopKbG7KE1 8o22tm1+4zFEcVze60HUTJKMOAAf1DNmmMVk8TlrU4P5/4ALVN6rUzw65T28TpnFIQJT2mgiCD8NX yKf7mjrQlm7pc302hs/c9zHjtaS7R6ZMkE32GgBdKkw89MpJVMarTcUNjHCDn2jn//ccc3UaeLSe4 sVGWX1sOlq7OfA7qyr5O/JnZ+bwz1gvRNcOPrmsUodJOJtbLOGv17bwWPMLiLu8hAT8dFfA7/GiGE 3JS38Ot/yoDd/cIIn5Ua4rjJQORQBdppM4Vw8aBWjKavSiAPyew3T+9LCTzMBlzd4zjtm9zfsSPja AsSZjkq4Q==; Received: from mail-cys01nam02on060c.outbound.protection.outlook.com ([2a01:111:f400:fe45::60c] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g85gU-0002LF-Kn for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 15:37:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZCZY73Xk3ZmXiimGXMWTNBwnmHabA+H34FtKHqpqPuU=; b=TrXz5pWX+MDyObUIJThoWix2t7iQwQbEno8AkHpIpnwtnphgskFeFcgidkTSkp+ROZ69O3SrQwO1airLBphsv8bwxLG33M1xRQTKN5yVZ4T2xlRdBSAVTaGzsJF4Djasat8xhIr3Cl5HeVbush7Z/CZ9Ps2Eg04wU6ByFQcxc4g= Received: from SN6PR02CA0006.namprd02.prod.outlook.com (2603:10b6:805:a2::19) by SN6PR02MB4765.namprd02.prod.outlook.com (2603:10b6:805:90::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.20; Thu, 4 Oct 2018 15:36:12 +0000 Received: from CY1NAM02FT056.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::208) by SN6PR02CA0006.outlook.office365.com (2603:10b6:805:a2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1207.18 via Frontend Transport; Thu, 4 Oct 2018 15:36:12 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT056.mail.protection.outlook.com (10.152.74.160) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1207.19 via Frontend Transport; Thu, 4 Oct 2018 15:36:11 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1g85ff-0001Ob-EC; Thu, 04 Oct 2018 08:36:11 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1g85fa-0000EC-AI; Thu, 04 Oct 2018 08:36:06 -0700 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w94Fa2QV023971; Thu, 4 Oct 2018 08:36:02 -0700 Received: from [172.23.64.106] (helo=xhdvnc125.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g85fV-00008Z-KL; Thu, 04 Oct 2018 08:36:02 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id CB6F1121465; Thu, 4 Oct 2018 21:06:00 +0530 (IST) From: Manish Narani To: , , , , , , , , Subject: [PATCH v8 07/10] edac: synopsys: Add macro defines for ZynqMP DDRC Date: Thu, 4 Oct 2018 21:05:25 +0530 Message-ID: <1538667328-9465-8-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1538667328-9465-1-git-send-email-manish.narani@xilinx.com> References: <1538667328-9465-1-git-send-email-manish.narani@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(136003)(346002)(376002)(396003)(39860400002)(2980300002)(438002)(189003)(199004)(36756003)(16586007)(90966002)(446003)(5660300001)(50226002)(54906003)(110136005)(478600001)(63266004)(2906002)(8676002)(426003)(106002)(81156014)(81166006)(106466001)(336012)(26005)(575784001)(2201001)(52956003)(48376002)(8936002)(72206003)(186003)(50466002)(36386004)(2616005)(7416002)(6266002)(305945005)(44832011)(4326008)(103686004)(356003)(51416003)(486006)(76176011)(316002)(47776003)(126002)(42186006)(6666003)(11346002)(476003)(107986001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR02MB4765; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT056; 1:Mt8FCA94WEkIlO+B6IZp+CNDRgXh1/FV/aM0fB96FlKEkyDViau5siV84DGAHC5cNVeO/L4+PO5Du63MEtLGbnMCpOIdjgmJufWKr9d6K0oyUlrmXuyizlMm/WpdeNNl MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 368b4a9a-a105-4f8a-d6f7-08d62a0f1d6b X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060); SRVR:SN6PR02MB4765; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB4765; 3:QgLMCKZSe1vL99Qnd/iFDQQMrx+jA/dg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TPog9tFL9XNqiaCiib4iJrPdi3g2qW1JXMn2ZPyuX9EATkP61IKiiqIxQtyzvYs7b1Xd6t+X9MappJjcg7DCu7dKzFwwFJ+iNcTw0ec0byeLVTUmgA9rzBmctEJP2akEOQ9Een4yZNMfBaGGsjMGW26znVCvR+EP4MS8fQK4VlNnz4fTrPBp4ADgZLtvYekh6H5XhBkbWU30vNcg+3PQdHAQ9jykNTVslc1bxm83c3TmKenVg/IPcEiHRACgilGbY7MNq7Pa+9YJJb8hixOm0mt1WZs+mqyqKQq7CRFFOVeLjEBEEuLsUEiTF/JI1rxFQOxLk9d/vgWORDOwXPgS6hTnINjNbiWXkacAS1NmpvX1WV8THCWRONitkIjWLhYBPm9pyxChESKo55Brd2kUlHD2X7PWwVtHxSe X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592)(105169848403564); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231355)(944501410)(52105095)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051); SRVR:SN6PR02MB4765; BCL:0; PCL:0; RULEID:; SRVR:SN6PR02MB4765; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB4765; 4:NX1HNePpar8CMqHys8LCL8fjq+aLbVBRORWjQ3CMKjnuPZRJxD5jjIdka8VLh3FK6pNzw++ea1mBzewwtn2LcgeUH+drrgABJ2kqf17WC3c9vH10CTytGRLriXQbdAstkKLLV31SKCb1iEJwQjr1+gW7U2DjfreHk/iBAcKHSUVXAdjeq+5D7Ekli4qr5yEykzePKEzee3OS13HwX4GPlCyxn/eX/zgPfK1zziSWLlOU4qQXixRqTauGoJPJuYxmqJ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V/Kt/os2gajQhjoh8R0+iV7FBXH4sKZx0DM3m6uAMfcOWwY8/CyWFcw7+E31ox/hO7r0xKBJFEw9vg0J5MemYU9w1jysOxYCuqKsTeprM9H5iIlUjHdbbZyFvAwS6N9mE8lZVBaqOg9ucZhXgxOOXCF+Rs+my3XGRqStteNfsE/LBnyibOUrQ==; 5:O+cf0HEc/LkfQKlCzAtAPjApxIVLbyOkSg1l55isllB/YHhgsj9O4jtBuUNJUt7rOB1irAMFj7CuDMYlWNkYs0bGdfsHWJPIxpL1G1Kd8UPTZUUGMEhaWYrconKKno/AYG+/xC7yWo7yO5Ppys2fFoiO42N50JgBljmQ1vYJEmU=; 7:w2oztlCQi9tGlg/aR6fjcpnC45/C84hSPi61nv+QbgBzzU4wdFi0RNOx4JiGAO0FTWgi2evDuVDcUXMa2uUspKEbbfogYaknrCEXNBI4om6mTkwde9ST7ptTLRsSIwuyvfAFXKEUnIGzZ5ym+aKLT1VQGVYx2MDyiiZP+/nb3B26ShKqxxN4DtMTwrvYkset3n0xI2LwymeBmZDOOp8X6y776JaXCDdr3vvjcaan/D6sjE4K63Vf/0Bs1t40YMJn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 15:36:11.8955 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 368b4a9a-a105-4f8a-d6f7-08d62a0f1d6b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_113702_924738_F5C0DA47 X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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-Virus-Scanned: ClamAV using ClamSMTP Add macro defines for ZynqMP DDR controller. These macros will be used for ZynqMP ECC operations. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 168 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index f0f4704..94d1398 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -97,6 +97,174 @@ #define SCRUB_MODE_MASK 0x7 #define SCRUB_MODE_SECDED 0x4 +/* DDR ECC Quirks */ +#define DDR_ECC_INTR_SUPPORT BIT(0) +#define DDR_ECC_DATA_POISON_SUPPORT BIT(1) + +/* ZynqMP Enhanced DDR memory controller registers that are relevant to ECC */ +/* ECC Configuration Registers */ +#define ECC_CFG0_OFST 0x70 +#define ECC_CFG1_OFST 0x74 + +/* ECC Status Register */ +#define ECC_STAT_OFST 0x78 + +/* ECC Clear Register */ +#define ECC_CLR_OFST 0x7C + +/* ECC Error count Register */ +#define ECC_ERRCNT_OFST 0x80 + +/* ECC Corrected Error Address Register */ +#define ECC_CEADDR0_OFST 0x84 +#define ECC_CEADDR1_OFST 0x88 + +/* ECC Syndrome Registers */ +#define ECC_CSYND0_OFST 0x8C +#define ECC_CSYND1_OFST 0x90 +#define ECC_CSYND2_OFST 0x94 + +/* ECC Bit Mask0 Address Register */ +#define ECC_BITMASK0_OFST 0x98 +#define ECC_BITMASK1_OFST 0x9C +#define ECC_BITMASK2_OFST 0xA0 + +/* ECC UnCorrected Error Address Register */ +#define ECC_UEADDR0_OFST 0xA4 +#define ECC_UEADDR1_OFST 0xA8 + +/* ECC Syndrome Registers */ +#define ECC_UESYND0_OFST 0xAC +#define ECC_UESYND1_OFST 0xB0 +#define ECC_UESYND2_OFST 0xB4 + +/* ECC Poison Address Reg */ +#define ECC_POISON0_OFST 0xB8 +#define ECC_POISON1_OFST 0xBC + +#define ECC_ADDRMAP0_OFFSET 0x200 + +/* Control register bitfield definitions */ +#define ECC_CTRL_BUSWIDTH_MASK 0x3000 +#define ECC_CTRL_BUSWIDTH_SHIFT 12 +#define ECC_CTRL_CLR_CE_ERRCNT BIT(2) +#define ECC_CTRL_CLR_UE_ERRCNT BIT(3) + +/* DDR Control Register width definitions */ +#define DDRCTL_EWDTH_16 2 +#define DDRCTL_EWDTH_32 1 +#define DDRCTL_EWDTH_64 0 + +/* ECC status register definitions */ +#define ECC_STAT_UECNT_MASK 0xF0000 +#define ECC_STAT_UECNT_SHIFT 16 +#define ECC_STAT_CECNT_MASK 0xF00 +#define ECC_STAT_CECNT_SHIFT 8 +#define ECC_STAT_BITNUM_MASK 0x7F + +/* DDR QOS Interrupt register definitions */ +#define DDR_QOS_IRQ_STAT_OFST 0x20200 +#define DDR_QOSUE_MASK 0x4 +#define DDR_QOSCE_MASK 0x2 +#define ECC_CE_UE_INTR_MASK 0x6 +#define DDR_QOS_IRQ_EN_OFST 0x20208 +#define DDR_QOS_IRQ_DB_OFST 0x2020C + +/* ECC Corrected Error Register Mask and Shifts*/ +#define ECC_CEADDR0_RW_MASK 0x3FFFF +#define ECC_CEADDR0_RNK_MASK BIT(24) +#define ECC_CEADDR1_BNKGRP_MASK 0x3000000 +#define ECC_CEADDR1_BNKNR_MASK 0x70000 +#define ECC_CEADDR1_BLKNR_MASK 0xFFF +#define ECC_CEADDR1_BNKGRP_SHIFT 24 +#define ECC_CEADDR1_BNKNR_SHIFT 16 + +/* ECC Poison register shifts */ +#define ECC_POISON0_RANK_SHIFT 24 +#define ECC_POISON0_RANK_MASK BIT(24) +#define ECC_POISON0_COLUMN_SHIFT 0 +#define ECC_POISON0_COLUMN_MASK 0xFFF +#define ECC_POISON1_BG_SHIFT 28 +#define ECC_POISON1_BG_MASK 0x30000000 +#define ECC_POISON1_BANKNR_SHIFT 24 +#define ECC_POISON1_BANKNR_MASK 0x7000000 +#define ECC_POISON1_ROW_SHIFT 0 +#define ECC_POISON1_ROW_MASK 0x3FFFF + +/* DDR Memory type defines */ +#define MEM_TYPE_DDR3 0x1 +#define MEM_TYPE_LPDDR3 0x8 +#define MEM_TYPE_DDR2 0x4 +#define MEM_TYPE_DDR4 0x10 +#define MEM_TYPE_LPDDR4 0x20 + +/* DDRC Software control register */ +#define DDRC_SWCTL 0x320 + +/* DDRC ECC CE & UE poison mask */ +#define ECC_CEPOISON_MASK 0x3 +#define ECC_UEPOISON_MASK 0x1 + +/* DDRC Device config masks */ +#define DDRC_MSTR_CFG_MASK 0xC0000000 +#define DDRC_MSTR_CFG_SHIFT 30 +#define DDRC_MSTR_CFG_X4_MASK 0x0 +#define DDRC_MSTR_CFG_X8_MASK 0x1 +#define DDRC_MSTR_CFG_X16_MASK 0x2 +#define DDRC_MSTR_CFG_X32_MASK 0x3 + +#define DDR_MAX_ROW_SHIFT 18 +#define DDR_MAX_COL_SHIFT 14 +#define DDR_MAX_BANK_SHIFT 3 +#define DDR_MAX_BANKGRP_SHIFT 2 + +#define ROW_MAX_VAL_MASK 0xF +#define COL_MAX_VAL_MASK 0xF +#define BANK_MAX_VAL_MASK 0x1F +#define BANKGRP_MAX_VAL_MASK 0x1F +#define RANK_MAX_VAL_MASK 0x1F + +#define ROW_B0_BASE 6 +#define ROW_B1_BASE 7 +#define ROW_B2_BASE 8 +#define ROW_B3_BASE 9 +#define ROW_B4_BASE 10 +#define ROW_B5_BASE 11 +#define ROW_B6_BASE 12 +#define ROW_B7_BASE 13 +#define ROW_B8_BASE 14 +#define ROW_B9_BASE 15 +#define ROW_B10_BASE 16 +#define ROW_B11_BASE 17 +#define ROW_B12_BASE 18 +#define ROW_B13_BASE 19 +#define ROW_B14_BASE 20 +#define ROW_B15_BASE 21 +#define ROW_B16_BASE 22 +#define ROW_B17_BASE 23 + +#define COL_B2_BASE 2 +#define COL_B3_BASE 3 +#define COL_B4_BASE 4 +#define COL_B5_BASE 5 +#define COL_B6_BASE 6 +#define COL_B7_BASE 7 +#define COL_B8_BASE 8 +#define COL_B9_BASE 9 +#define COL_B10_BASE 10 +#define COL_B11_BASE 11 +#define COL_B12_BASE 12 +#define COL_B13_BASE 13 + +#define BANK_B0_BASE 2 +#define BANK_B1_BASE 3 +#define BANK_B2_BASE 4 + +#define BANKGRP_B0_BASE 2 +#define BANKGRP_B1_BASE 3 + +#define RANK_B0_BASE 6 + /** * struct ecc_error_info - ECC error log information. * @row: Row number.