From patchwork Mon May 4 06:56:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1282252 X-Patchwork-Delegate: jagannadh.teki@gmail.com 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=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=N2Qi3oBl; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Ftw20NbCz9sSm for ; Mon, 4 May 2020 16:57:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0D0781F35; Mon, 4 May 2020 08:57:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="N2Qi3oBl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BC1B81F2F; Mon, 4 May 2020 08:57:16 +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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 D3B9D81F1E for ; Mon, 4 May 2020 08:57:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-wm1-x332.google.com with SMTP id k12so7101476wmj.3 for ; Sun, 03 May 2020 23:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wNnpO68ZnqQ7wjo4BTYD5xwJpCDe3aIxTaDPDGnXqu8=; b=N2Qi3oBlXcljl5MEuBDxsm0N4UvgVWoeVuwHsFihZd08zd/y2M8H74I88/g9k7J7xp GqBQZjSXad82+6glgMJMSF4rOEIWUx2zxWhk3f2UdvpCD7QEPZX7fQ3tOVlSbPFhHVt8 AS8xcrRTZeHYpfVDAtZecdBABu3V910m0XoFs= 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:in-reply-to :references; bh=wNnpO68ZnqQ7wjo4BTYD5xwJpCDe3aIxTaDPDGnXqu8=; b=ua6J6M1xRUD3/ids3uMoPpEL2sZ0rSs522n1prk80Jad/r2k9Boz/07TMwZ70NH6wt Mhee/p8tqo61Sm1b/1O/PKCjDTSiafzI8M/o9x9yH2cKgNUxFKXffLU4WDM3IRaupRWZ c/jHTdzmgONBOtQvogvaaJxFu+MQAZ65qo8xpmQUyLuMyK33ImWKe5x2we7sB6qqhA4E u2R6aaHFQquIxKvGbrvNVdOWkukI1LclsQnLRBx4vkdfSc5Tb7BmqOi8PBFITsc8nPWO 4n1iq55BuPSDuBYSmdU8laM9TB5Bhfu5gktRZUxUqcKubjrCSucewy3gfioGnrXNIojn 71kg== X-Gm-Message-State: AGi0PubeKZRI13Ce5ebjHMIrNTkWTlM2q5pT262njcOLWmzViArlBav+ 8vHOfegjhvL27b9vA58C71KbzVVkj3vc5PBm2EDDyh0cUviUnex4EaIhhXSNjv72flv8fOr95gS JX+8krt9TP2cF+L0kzEUQBFD/dg0X0Jq3zfUGqYqAey+8OLGT1M65qfGpq15Oj2BJLbKVpmaTs0 dIXIHItA== X-Google-Smtp-Source: APiQypIewqzLBhSjaYLkiSA/xYgRwByy52KTbPe3jTZ/+m5ffKpwyRnAEGodk0x/gfp6oeMkBhqupw== X-Received: by 2002:a1c:9d8c:: with SMTP id g134mr13351489wme.79.1588575432981; Sun, 03 May 2020 23:57:12 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r2sm11797667wmg.2.2020.05.03.23.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 23:57:12 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Jagan Teki Cc: Rayagonda Kokatanur Subject: [PATCH v1 2/2] drivers: spi: add commands for micron SPI Date: Mon, 4 May 2020 12:26:52 +0530 Message-Id: <20200504065652.11551-3-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200504065652.11551-1-rayagonda.kokatanur@broadcom.com> References: <20200504065652.11551-1-rayagonda.kokatanur@broadcom.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean Add commands for dual and quad SPI transfers on Micon SPI. Signed-off-by: Rayagonda Kokatanur --- include/spi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spi.h b/include/spi.h index 2b4929fc79..491f1f805c 100644 --- a/include/spi.h +++ b/include/spi.h @@ -150,6 +150,8 @@ struct spi_slave { #define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END) #define SPI_XFER_MMAP BIT(2) /* Memory Mapped start */ #define SPI_XFER_MMAP_END BIT(3) /* Memory Mapped End */ +#define SPI_XFER_DUAL BIT(30) +#define SPI_XFER_QUAD BIT(31) }; /**