From patchwork Mon Sep 7 06:54:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1358624 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=I9TyV0yO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BlJv213jfz9sR4 for ; Mon, 7 Sep 2020 16:55:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF5EA823CC; Mon, 7 Sep 2020 08:55:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="I9TyV0yO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D137B823D7; Mon, 7 Sep 2020 08:55:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1BA1B823AC for ; Mon, 7 Sep 2020 08:55:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=a.heider@gmail.com Received: by mail-ed1-x542.google.com with SMTP id n22so11673504edt.4 for ; Sun, 06 Sep 2020 23:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PPJwXi1XtFDNQMrKC2F9SISPXixQNd5wQZizXgCLZbU=; b=I9TyV0yOKpu3xE4ZKgQZW0tqVxIfkUp4U52LnHCi91YntifTY3LZLh6WRZqTOu1883 0ivKzRK7PAJL7nI44JEVWBBmD2p/R33e4Ci2LKgAAcRhKggFS+dsYw/pzsdwGvgFYKji TudDhNBLO1ZG0QPeZcLSVzJpVaAjxJw9EMwRYO9gwFwMVsoIstK23DwUGeYcZ9iIeNBO VpSTmd2pUyTQZCDtWHLQtUHyVMBO7pdbEYHyBWwNhZbdSazWBmRIM4SfBdIRK/iGgWT8 AiyfNBKMYaJwuZaS6XRVDkGSHixjRcKUhocklB2pS/nsRRl/bO5qttvgLDstCBt+m7q3 Nduw== 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:mime-version :content-transfer-encoding; bh=PPJwXi1XtFDNQMrKC2F9SISPXixQNd5wQZizXgCLZbU=; b=MP6iqkGMKCnBHc/mzVVatX4W9/upw9UElFwutyQTg06HEmfXF2dJ4lIwh4giIbHZDt lnMsnOcMojK9f4FBLZQoaZnMTxhwDx9KDHXzJ6uOmjb9iyUWqNtxWZqXX64ZBAkM7+2/ VkIroke8D88iRlhRjwqaEuS0iQFhBEYJpmooiFxUpo/heAddsM2sLBJCa5AGdL6onH/E BVBb9a+TZnWBXtgB28aQje/F587Jbdc88oNFjteNnszGYwbEdw4pD9daFfMbQ9bdvunw MbtzqLXvDcoRTMlvpxMoLPB2YUv12QBW52SxIzvQg0y7MOYPq0JulopjrOVF752TL3DP x8gQ== X-Gm-Message-State: AOAM531GAZVXlTzYpdu4MBvekxpn28cPzH4wu0lFj8VviuI1dDRdKdrj QbKWo8aD4ZxYh3qCKYfJIEc= X-Google-Smtp-Source: ABdhPJzuF/bUxO3eUWM6F+WDJGVUUXYJNS4D8MboJBDHcbeChjl0ppDv3C6qR49qGgsW791doZPGYQ== X-Received: by 2002:aa7:c504:: with SMTP id o4mr20789494edq.82.1599461699734; Sun, 06 Sep 2020 23:54:59 -0700 (PDT) Received: from mamamia.internal (a89-183-24-75.net-htp.de. [89.183.24.75]) by smtp.gmail.com with ESMTPSA id k25sm14554421ejk.3.2020.09.06.23.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2020 23:54:59 -0700 (PDT) From: Andre Heider To: Jagan Teki , Vignesh R Cc: u-boot@lists.denx.de, Vladimir Vid Subject: [PATCH] mtd: spi-nor-ids: add support for Macronix mx25u12835f flash Date: Mon, 7 Sep 2020 08:54:58 +0200 Message-Id: <20200907065458.492509-1-a.heider@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Vladimir Vid Some of Marvell A3700 boards use mx25u12835f, specifically uDPU and ESPRESSObin v7. Signed-off-by: Vladimir Vid [a.heider: adapt commit message to mainline] Signed-off-by: Andre Heider --- Patch taken from OpenWRT's uboot-mvebu package. drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 114ebacde1..bc9d4f7e9f 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -151,6 +151,7 @@ const struct flash_info spi_nor_ids[] = { { INFO("mx25u3235f", 0xc22536, 0, 4 * 1024, 1024, SECT_4K) }, { INFO("mx25u6435f", 0xc22537, 0, 64 * 1024, 128, SECT_4K) }, { INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, 0) }, + { INFO("mx25u12835f", 0xc22538, 0, 64 * 1024, 256, SECT_4K) }, { INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) }, { INFO("mx25l25635e", 0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { INFO("mx25u25635f", 0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },