From patchwork Sat Mar 3 22:31:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 881102 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="izBAI+yj"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="R7yFKEHK"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zv1Dd35w8z9s9D for ; Sun, 4 Mar 2018 09:34:09 +1100 (AEDT) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=AcT1M2n6O/NBzu9I6mLHTgTW0T9TFL+A8a8OnTd34LU=; b=izB AI+yjWxo7Zz7f+8YkfL2Zr0asZhEGlQ5gGdowV5r1MxNmlMWu5CciCZRKh960qMtVUOjkQFdrcPrm 9yB64BgkbKLkRk4ehSyysgxUs6zLSMuRXKjmUC64I8DFgdPcWv4RvwXsEqhIYIbuJaaQuKfPgmEAC 7rFLAwyKOIKK06CzGRM0LvFiqwidkXqHGLE3CuvInSnHBoy36pgCeCxUW8evow839J/pnE57qnLIe xcPwPPk8YbE+GI5ZYDWpxrS7U2jwv4V271uveuDkrq81u/sv6O/pzSTyBcmOjWGM4unWbOwtrhfyn RJZEPtXCdtftINur4gQUTTwvEoG9mJg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1esFjB-0000BQ-0J; Sat, 03 Mar 2018 22:34:05 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1esFj7-0000Ab-TQ for linux-mtd@lists.infradead.org; Sat, 03 Mar 2018 22:34:03 +0000 Received: by mail-lf0-x243.google.com with SMTP id q69so18118084lfi.10 for ; Sat, 03 Mar 2018 14:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=lL/hPWHUBtt6oyTHhkeDZ8CyEQbbU2BzvXYAzv1iLfA=; b=R7yFKEHKUB/dEgEhBW7Vtf8RBjF2MQz4fnkKiMeXVl5sw6zL4Yl9KRzXsYL/tZff86 Za2U/8Mc/D6ytZi5H15aCBtDaaFY5/Q3RghWIi2J+6xFgbOYl+XfsH79xMjT8bMNuUlf 0BAt/PSzEboqSdtbDobsOL4Co5AVmF4I7okhI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lL/hPWHUBtt6oyTHhkeDZ8CyEQbbU2BzvXYAzv1iLfA=; b=Wu0wEqCgAyC9oUG/ArACU8+Alq268CdMNKSu91Xs8A4xDJ6j0GtXUgPYXmyMGCilQ3 xRaTgwC1SDU6VGo6X6cIz7ZUqzPHSGNkqU0A3e5A3vibCYzo9IIAvc3mO1DGrYJ4Yzz/ BErxQN5AUa3kBwKZN5ZFTUGD5nKNn5axXDGJtGJ+0A0lQb+xXX8W06ZzLc65dnkTt+Q1 ABTDCcQcBF0dsoLhpzR/l18Gkk4JDdQhQEn5eG6WWdnyAOAmX1eDisQ3TFXMXpf5TWYs LKhT/pecHSRoHxqkXsLLHAWHt+0Oq3p5ziz2kKSyAVZ2vW8j/SG6hkkjDnI0NdX+ENn0 MueA== X-Gm-Message-State: AElRT7GQU1f7KCEebZZI+tBvNPK0xyxQnVXCChBJeLt+zg+trhDnnwb2 92Fxhz1TENzDlM0QzFWc25y8Bg== X-Google-Smtp-Source: AG47ELskTrsykCf3yq+wuxL63PwupMbl5JJqNbaw2dy4WcOzFy8fe796nE6+O18SW0MsJauV5vJ+oQ== X-Received: by 10.25.38.11 with SMTP id m11mr6532142lfm.22.1520116429977; Sat, 03 Mar 2018 14:33:49 -0800 (PST) Received: from localhost.localdomain (c-cb7471d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.116.203]) by smtp.gmail.com with ESMTPSA id d82sm1992381lfl.66.2018.03.03.14.33.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Mar 2018 14:33:49 -0800 (PST) From: Linus Walleij To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: jedec_probe: add Eon EN29LV400A IDs Date: Sat, 3 Mar 2018 23:31:45 +0100 Message-Id: <20180303223145.27903-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180303_143401_959507_FB393368 X-CRM114-Status: GOOD ( 11.25 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This adds the JEDEC IDs for Eon EN29LV400A variants EN29LV400AB and EN29LV400AT. This chip is found in the D-Link DNS-313. Signed-off-by: Linus Walleij --- drivers/mtd/chips/jedec_probe.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c index b479bd81120b..6f7e7e1b3fe5 100644 --- a/drivers/mtd/chips/jedec_probe.c +++ b/drivers/mtd/chips/jedec_probe.c @@ -53,6 +53,8 @@ #define AT49BV32XT 0x00C9 /* Eon */ +#define EN29LV400AT 0x22B9 +#define EN29LV400AB 0x22BA #define EN29SL800BB 0x226B #define EN29SL800BT 0x22EA @@ -641,6 +643,36 @@ static const struct amd_flash_info jedec_table[] = { ERASEINFO(0x10000,63), ERASEINFO(0x02000,8) } + }, { + .mfr_id = CFI_MFR_EON, + .dev_id = EN29LV400AT, + .name = "Eon EN29LV400AT", + .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, + .uaddr = MTD_UADDR_0x0AAA_0x0555, + .dev_size = SIZE_512KiB, + .cmd_set = P_ID_AMD_STD, + .nr_regions = 4, + .regions = { + ERASEINFO(0x10000,7), + ERASEINFO(0x08000,1), + ERASEINFO(0x02000,2), + ERASEINFO(0x04000,1), + } + }, { + .mfr_id = CFI_MFR_EON, + .dev_id = EN29LV400AB, + .name = "Eon EN29LV400AB", + .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, + .uaddr = MTD_UADDR_0x0AAA_0x0555, + .dev_size = SIZE_512KiB, + .cmd_set = P_ID_AMD_STD, + .nr_regions = 4, + .regions = { + ERASEINFO(0x04000,1), + ERASEINFO(0x02000,2), + ERASEINFO(0x08000,1), + ERASEINFO(0x10000,7), + } }, { .mfr_id = CFI_MFR_EON, .dev_id = EN29SL800BT,