From patchwork Sun May 17 07:24:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1292041 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=85.214.62.61; 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=Dsn+SZ8L; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 49PtvF5TTVz9sTN for ; Sun, 17 May 2020 17:24:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E47578158A; Sun, 17 May 2020 09:24:30 +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="Dsn+SZ8L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E72F88158B; Sun, 17 May 2020 09:24:29 +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-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 C8CBC81589 for ; Sun, 17 May 2020 09:24:26 +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-pl1-x642.google.com with SMTP id g11so2816847plp.1 for ; Sun, 17 May 2020 00:24:26 -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; bh=VvsFGhKr1eiUx6FAJPsg6g3vf+sbXCQVJynV90msVj4=; b=Dsn+SZ8L+Ah7zQzobTY9fK9qY+ry1GIcRG2Sq0lKGnMfuWEhA3JmGndLFixCGqo+IK IkUn0VlppKV6BkuXISPWPpMJhs68WWP12KdU1re9nivE4NXIkCEwxhSzMKshS+P1mlFE Iwb3wyp6989bW6yVQIhsCIaskkx2UEQAiswIQ= 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=VvsFGhKr1eiUx6FAJPsg6g3vf+sbXCQVJynV90msVj4=; b=KNEdS56NuMvpuWASWLax8eOmWAygnqGODAvfxfVKe3yIVup/zIbRKqKfVqvAfvIHqC r/BcttsMdd7o7NSAQm+8h23jFLytPygxSmyZChg10Jx/L32sup7FAaKYP1n3II+1RY28 TiYkF4EpNUGWQ9AevaSysscdIp0Yty75etaY+RKPmdqIOkuF+DsitjMvCGvgX6TpUWDx 0SBAivg4md3G+pqLfaaZshygVYhDK88jv27GXaHzfKoTQbcE37DFFVL9FA+en7BfZi6/ 8eIBvlO1zI62AtPaYmZHznAXp6Ru0B2aX4P1cyUkiviWMKhOtwGfxZoIu/8xlTTn/FLv DX+w== X-Gm-Message-State: AOAM530h+/WYuCwquEY6KzPG2qPLK47+ZOU8V+j+q9CwkDRZrK/fWbAC laXmQpNuu7bbp32UEIUPWU/Gvg== X-Google-Smtp-Source: ABdhPJxzH46PZFqmSvZltnfz9EGIOXs7lOuZUgR7AMztWtv1PnPZmYd/2rxU/PznFNUyp/+onl9DnA== X-Received: by 2002:a17:90a:3326:: with SMTP id m35mr6321135pjb.10.1589700264310; Sun, 17 May 2020 00:24:24 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id a5sm291691pfk.210.2020.05.17.00.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 00:24:23 -0700 (PDT) From: Rayagonda Kokatanur To: Jagan Teki , u-boot@lists.denx.de Cc: Rayagonda Kokatanur Subject: [PATCH v2 0/2] add broadcom spi driver Date: Sun, 17 May 2020 12:54:10 +0530 Message-Id: <20200517072412.19416-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 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 This patchset, -adds Broadcom SPI driver for iproc-based platforms and -extends Micron SPI commands for dual and quad SPI transfers on Micon SPI. Changes from v1: -Address review comments from Jagan Teki, Remove flash opcode from driver and use include/linux/mtd/spi-nor.h, Remove CONFIG_BCM_IPROC_USE_BSPI, handle via driver data -Address self review comments, Remove REG_WR, REG_RD, REG_SET, REG_CLR and use writel, readl, setbits_le32 and clrbits_le32 respectively, Rename priv data struct variables mspi_hw. bspi_hw, bspi_hw_raf to mspi, bspi, baspi_raf respectively, Remove struct bcmspi_platdata. Rayagonda Kokatanur (2): driver: spi: add brcm iproc qspi support. drivers: spi: add commands for micron SPI drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/iproc_qspi.c | 808 +++++++++++++++++++++++++++++++++++++++ drivers/spi/iproc_qspi.h | 18 + drivers/spi/iproc_spi.c | 71 ++++ include/spi.h | 2 + 6 files changed, 906 insertions(+) create mode 100644 drivers/spi/iproc_qspi.c create mode 100644 drivers/spi/iproc_qspi.h create mode 100644 drivers/spi/iproc_spi.c