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: 997605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="a0zR0uyL"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42w0xr3lrzz9s3Z for ; Wed, 14 Nov 2018 21:25:36 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 3F5B6C22081; Wed, 14 Nov 2018 10:25:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 864DCC2201D; Wed, 14 Nov 2018 10:25:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2AEF6C22052; Wed, 14 Nov 2018 10:25:27 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id CAE0BC2201D for ; Wed, 14 Nov 2018 10:25:26 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id r63-v6so14931124wma.4 for ; Wed, 14 Nov 2018 02:25:26 -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=GVQ2Rr0adL8U/BB1wZJLDXSLFXgsrTv4O2qyzktQOzW7uQ0J54SbggQVa/8zcrihG4 24VnnV/yrIF83zybZpgsXa32ULSDE2dbe+8ur0mZX3o72yJLxbwcEXLDQMUnF5FNfWZF cxMK0maSQIP0srut0dNT+i6PHlr50AXI7k6IaoK8Rh0j57c6+UM1kYHuDGAFb9jT9cVw WLiT71rQEmd/ca90EOhKxtrj2MdU7oIHGx/FyYyDn9TqYU8eLvUy6Rnl5iBNaNwuTZ23 58e92ijTYct3gfajRPAdEfn6M9wBw8+zgCU+feXLew5n5BEjhq2cEOGH3sCTG4peXh2o 727Q== X-Gm-Message-State: AGRZ1gLKxUCs75Fu29T0qup7fJwQR52v8ZldUVQbNanDaTbh2BxXffcC TZDPKutmKEF1QCHq+eoU1bctmas4Nvg= 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 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 Cc: u-boot@lists.denx.de, linux-amlogic@lists.infradead.org Subject: [U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" 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