From patchwork Wed Nov 14 10:25:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10682323 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 87B1613B5 for ; Wed, 14 Nov 2018 10:25:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ADFA2880F for ; Wed, 14 Nov 2018 10:25:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ECA429A42; Wed, 14 Nov 2018 10:25:42 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 3ED3E29C50 for ; Wed, 14 Nov 2018 10:25:41 +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: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=C+xZrke7eiVFk75PITpES0msl0oJh+MZU6B9BoPFmwA=; b=mJaKYgE2jzfEpF A7dSg620gEILE6QIWfP3ZAyRQz0vSDFc9ah4pyq+P2mI8N9DFrbI5yzvuYe5WJoOqfikfXIHxBKNM RhDFSQGIi0HLAQ+pw9Hwb9fdv5Aeen4fT5V23wPr8nDfazup39FvqHV/kBnnhA2ruw9AuxlQHiJrf cV4xzbBHhjpWcDelHGteMPlo2V4SKK2cBms53uQsMvV/7WERnjOUrRHWR43sdElPwXm2JhD86NIRY ADvklXsNtdSUrhNvd5hr9symi+fK4uH7ihEm2LrKw739Wc05qSDTM2KM1oxbpzeC2szg7TlndKhk5 6Z1YX/mf0G5tuCVlaAYg==; 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 1gMsMe-0000Bi-Px; Wed, 14 Nov 2018 10:25:40 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMsMc-0000AO-5j for linux-amlogic@lists.infradead.org; Wed, 14 Nov 2018 10:25:39 +0000 Received: by mail-wm1-x341.google.com with SMTP id r11-v6so14830436wmb.2 for ; Wed, 14 Nov 2018 02:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wZnhsI+RFFxp2vWUthtWInhS+P3iSo8FKtL4NaEVVA0=; b=a0zR0uyLgh2Xks+/SIyffvNy3xJLvdhihWNicU2QC4B/OJotWXoIxLA2CDA0gHhY9y T6XvZ7CxMoET4lW4P+EE/H4WjStpTWs8R3oNAx7Dg4naS/kQ5shUcFywEyj3eVCq3yl4 BNU633ms8N+EBFGCaudsKanog13KTSrb3nWZxrYrZaOlVVMfAgaJgcb5LqZB2XsYejeh TuAIUowQOKfPJbzLu7Qh0IQao3atbboRiy+SuCTUNyI5mQboL3r5MPfde47WgbH/5Qrc 8UaqRExGbPcMePvEgDsl30udALMZl5IMBRKYtlzFbeS33uWA+NQwSnEXs3UN25M0lp6+ +4pw== 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=wZnhsI+RFFxp2vWUthtWInhS+P3iSo8FKtL4NaEVVA0=; b=fgYjuNMh/CG5aC317k5rYVLJiXpB2ZTjNM95ZO5fkNSFr3ipuS/XPYp3MfyhExYriG PDM6sLlYj4GyIfLZo4FTqAudh94U7/IT7uq0RwCAr1whtkfO6vPqFr4cXSfq1mHKLxZT sziYiRLCjERZEteaOSqqqEKBfFl2LtIs/2NVQQ5fBMzCwwekApvxN3ksgYUKg/s4Txrh 9jfAziPiIBePnjiBl8rigpxC83Uo5N5R/7hvrDBzi5lrYtU4QriPQdveR9yyilj/dYrg STnKhnzWcYzJ+ePWPB4GhGVz6xunCvAaxafZaRCajKSROkVNOcwSO4lSIbgPR0ztAhgU zcCA== X-Gm-Message-State: AGRZ1gKWBc8hE5V3EgC0+hWad0t20ZpIKlOapdLS9l58aPTYRT7dk9hS 4qxcP24cNrIxWL3IssNHxoZvaQ== X-Google-Smtp-Source: AJdET5fKkqxJmsHp0eLvez/8nWZO5muqWNVRADIaprkGNXYHsD9HXz3XF3qDvon6oxRcdhFHfAchbw== X-Received: by 2002:a1c:6283:: with SMTP id w125-v6mr1331833wmb.117.1542191126155; Wed, 14 Nov 2018 02:25:26 -0800 (PST) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id v9-v6sm23720908wrm.6.2018.11.14.02.25.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 02:25:25 -0800 (PST) From: Neil Armstrong To: jagan@openedev.com, sjg@chromium.org Subject: [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver Date: Wed, 14 Nov 2018 11:25:17 +0100 Message-Id: <20181114102520.25346-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181114_022538_216614_08D7B57E X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: u-boot@lists.denx.de, linux-amlogic@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This patchset add the driver ported from linux, but also import the regmap regmap_read_poll_timeout() to implify the register polling in the driver. Neil Armstrong (3): regmap: add regmap_read_poll_timeout() helper test: regmap: add regmap_read_poll_timeout test spi: Add Amlogic Meson SPI Flash Controller driver drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/meson_spifc.c | 330 ++++++++++++++++++++++++++++++++++++++ include/regmap.h | 38 +++++ test/dm/regmap.c | 26 +++ 5 files changed, 403 insertions(+) create mode 100644 drivers/spi/meson_spifc.c Tested-by: Jerome Brunet