From patchwork Thu Nov 22 10:01:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10693773 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 9D67B13AD for ; Thu, 22 Nov 2018 10:01:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B5E32CA0B for ; Thu, 22 Nov 2018 10:01:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F2622C9D3; Thu, 22 Nov 2018 10:01:27 +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 7CBC92CA44 for ; Thu, 22 Nov 2018 10:01:26 +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=pV8Ag/xxD4LFaIZqscB/7xyV5m0eafq+zREXgHwMqjg=; b=Jxz1VPvit2nvjW niRuc1Y5zGMLq+lLJRSiaeSpjZVYiLPa5NKXPoyVAI00MFdf7Ub7hDWEqCU+OaAYsMoD/y2tVEZ2j dbIqtINZGU0SEXm7mZFLvfIixTSrnv737wza8R7wQwDj+NZZs8b5l+HNgbSnM0/A1/wv1oIAItRLe RRkJ8uu2tBCOltcNulzTqvRmU8rniJh2yXgJlMCII9ZDFXF69L0IOHByEdgu0REUxJxdHwYOPr9Vz vSx1hMPvLPSCuE/p69S/6Rmn2ECtYp3utzUl+4w6zrD3ONdbuQi8LVnf98a8TdGyRXxNdv0bKbwcA JW9Y0/+QG3CbtweeM3iw==; 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 1gPlna-0002q9-4o; Thu, 22 Nov 2018 10:01:26 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPlnU-0002nR-G5 for linux-amlogic@lists.infradead.org; Thu, 22 Nov 2018 10:01:23 +0000 Received: by mail-wr1-x441.google.com with SMTP id t27so654253wra.6 for ; Thu, 22 Nov 2018 02:01:09 -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=JzbBLnLI4cdFdJ7gD6fAoAcYddEOVWNaYK2XyA3OZOM=; b=WXevVAYPOOyKtYI9YwFy7N5cORMiJ+kjABFI11lcIb80JYGeeqADtZwte0uIuarFny ZIfuc5YLhNk9sCcYwA8WbEO79vr9JusX31RCEzdCsma8nnkFzkxGPOFX+7EkQe7zFe7y 6+PVybmOhR8cX5G6IW9pgUysHJYjCcujAPNOJvfTkzWb2KEZoqme2eW0pMEQ2wBkldOP xon00z0VbE4bUKPN2AMbIQ9XlFvSluYnjdumCsNsNgGeULiMgRuXCVDYUbapU71rKPb+ 5YL/tMzSVjwAkfPs4p+WXzFMsMicTXG+x2Ag3BCd1h0uZmfUFDwFRf7iVpe45Cr6JUtz coYg== 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=JzbBLnLI4cdFdJ7gD6fAoAcYddEOVWNaYK2XyA3OZOM=; b=sK73tR+NDY/fWFbWtSdNjvlxc3pdqQBJjrQGveErg8DQBW4xgctelTKd76QCRUgt6w 4fixs5TWop6W+ZPokiQ/iuk7Sv3KBg69mqBmHn8SV/a4EBk9pl5WZF477ZYe2DCaXzq4 TebxLmcBACKRKtOZnPBt+BJu5OfRk1kZFOgmv5x1S5XBtM7tHN9lV7f5Khvtq7s3l3uw 3O7ltHxkxZ5EzUxQ+e4KpM6ugCZW/65AGHiikNVJpDynzoq+BMKCaWeq9fDTm0eTVs2Y 0t/6t8awt9pA68lmENZpV9rEhb+HkGnon/OAuICUUfdfYZZ2e8hN0hS1o+P81H55P2wo dEYg== X-Gm-Message-State: AA+aEWa+YHfrGBXiHSlnuQQDnfk9HLCbHAKfDYgXy3s+J+YPrDsBTVSL //lSGlkdosUlTuXBvMrGVunveA== X-Google-Smtp-Source: AFSGD/XDLb3IgGWamDPC+P5GPKe12PGkcbgYBFptQQntBtdabd7rjDP3GWglBbyNrkw15QQ9h+/OdQ== X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr9170587wrx.303.1542880868114; Thu, 22 Nov 2018 02:01:08 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id t82-v6sm4677822wme.30.2018.11.22.02.01.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Nov 2018 02:01:07 -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: Thu, 22 Nov 2018 11:01:02 +0100 Message-Id: <20181122100105.14829-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-20181122_020120_598449_131A2C3E X-CRM114-Status: UNSURE ( 7.60 ) 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 | 320 ++++++++++++++++++++++++++++++++++++++ include/regmap.h | 38 +++++ test/dm/regmap.c | 26 ++++ 5 files changed, 393 insertions(+) create mode 100644 drivers/spi/meson_spifc.c