From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DC0C821EB88DB for ; Fri, 1 Sep 2017 06:01:38 -0700 (PDT) Received: by mail-lf0-x22e.google.com with SMTP id g18so620909lfl.2 for ; Fri, 01 Sep 2017 06:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LyhrD1/S1Q6p6TrYMiFDrK17ge0uZLJrFVR515kow+o=; b=yFfMmr8kK5G32RPpR/QWM74v8EFwqF4mJ36UcbNWbQ1F+eCZh+uVNa6e7nadTyWtui wnwBUIc7atW7YoqJAYtJb9TT4wsQ0+4FuGEQK2PC/skyFP1VYiriyHi1a2IbixlZuTn5 7WEJFseizebzJouzPJB1bBC62l8lZuCvRBCd5DtuyWa6y2z+TaQao47wxTiY7Zm5Dm6e F5fKpgIL9LRU6BMRkFDByWxYbSh6HLBmpu9teiHxXum1mVCrtW2nFtoVr1ArPsfhEO/t d7JINIBf9GX3q30ipOSCLfAvl1XlQqoJOe5wZgIOqF4Un0Tjz4vFVKsnktvw02AEnvCe ULKA== 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=LyhrD1/S1Q6p6TrYMiFDrK17ge0uZLJrFVR515kow+o=; b=ICh0nysDWdwsuaSxkTn6YE2LL3MZO1T0920l0mB2QxoCmkOnRx5ArbIWl37TYLXaNq nBeRcfeXW1xKC4N/Hy3QQ9xZ8Zm+YsO+h8iQ/8dQ3wVyPsgBCzi16vBQRVLh+qwzBqzs U0tuI9xpzufoy5zkKtjq+aMX5k+FP3NXG7mToz4afvfSIVEGX/nk2exz5TC2eAla5jkV S/9u7KwGKP7uHvuaygEyb3BLdC7AKn5TgPW4+pGl/UmFdZX4+MVW2KZEorqiwpNQ/98f p3LF6IZfbHIPovdC1Rr7ojP/lNHWkoLZL787twUyj7qWqFV2td+c+ogH8QVh1whD6fbj aEfA== X-Gm-Message-State: AHPjjUjG+wxeU9P3FlCcO8Hk51J7L4SVuljlZk0seqI7Tn/geRCj3qwU Zk1UWdgY51djPbdzhAynBQ== X-Google-Smtp-Source: ADKCNb4OyzMiQa3N5WJmrLpaWTJFoheG/VWhpheRcevWl5+J/Kxryk66aWq8KvPflBUTRptXq5UceQ== X-Received: by 10.46.82.77 with SMTP id g74mr862548ljb.129.1504271061189; Fri, 01 Sep 2017 06:04:21 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m129sm21754lfg.26.2017.09.01.06.04.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:20 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, agraf@suse.de, mw@semihalf.com, jsd@semihalf.com Date: Fri, 1 Sep 2017 15:08:12 +0200 Message-Id: <1504271303-1782-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Subject: [platforms: PATCH 00/11] Armada 70x0/80x0 SPI improvements X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 13:01:39 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, This patchset introduces a big rework of MvSpiFlash driver, which now is capable of autodecting SPI flash device. Its operation is based on structure fields and that allowed to clean fixed and faulty nature of hitherto PCD representation. From now on MvSpiFlash is generic enough to be possibly reused by other platforms. Other than that, various minor fixes and improvements are implemented. A PortingGuide refactoring patch was required, because all future changes around PCDs will modify a single file in a Doxygen-compliant format. Patches are available in the github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/spi-upstream-r20170901 I'm looking forward to the comments or remarks. Best regards, Marcin Ard Biesheuvel (3): Applications/SpiTool: Fix bug in error test Applications/FirmwareUpdate: Fix 32-bit issues Applications/SpiTool: Fix 32-bit issues Joe Zhou (1): Drivers/Spi/MvSpiDxe: Fix write bug Marcin Wojtas (5): Applications/SpiTool: Enable configurable CS and SCLK mode Platform/Marvell/Armada70x0: set CS and SCLK Mode for SPI flash Drivers/Spi/Devices/MvSpiFlash: Fix usage of erase size parameter Drivers/Spi/Devices/MvSpiFlash: Enable dynamic SPI Flash detection Drivers/Spi/Devices/MvSpiFlash: Fix bank selection for Spansion Nir Erez (1): Platform/Marvell/Documentation: Refactor PortingGuide Piotr Król (1): Drivers/Spi/MvSpiDxe: Log and return correct error .../Marvell/Applications/FirmwareUpdate/FUpdate.c | 28 +- .../Applications/FirmwareUpdate/FUpdate.inf | 3 - .../Marvell/Applications/SpiTool/SpiFlashCmd.c | 46 +-- .../Marvell/Applications/SpiTool/SpiFlashCmd.inf | 3 +- Platform/Marvell/Armada/Armada70x0.dsc | 7 +- Platform/Marvell/Documentation/Build.txt | 58 ++++ Platform/Marvell/Documentation/PortingGuide.txt | 357 +++++++++++++++++++++ .../Marvell/Documentation/PortingGuide/ComPhy.txt | 45 --- .../Marvell/Documentation/PortingGuide/I2c.txt | 20 -- .../Marvell/Documentation/PortingGuide/Mdio.txt | 7 - .../Marvell/Documentation/PortingGuide/Mpp.txt | 48 --- .../Documentation/PortingGuide/PciEmulation.txt | 31 -- .../Marvell/Documentation/PortingGuide/Phy.txt | 45 --- .../Marvell/Documentation/PortingGuide/Pp2.txt | 35 -- .../Marvell/Documentation/PortingGuide/Reset.txt | 7 - .../Marvell/Documentation/PortingGuide/Spi.txt | 16 - .../Documentation/PortingGuide/SpiFlash.txt | 23 -- .../Marvell/Documentation/PortingGuide/Utmi.txt | 35 -- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 266 ++++++++++++--- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.h | 9 + .../Marvell/Drivers/Spi/Devices/MvSpiFlash.inf | 6 - Platform/Marvell/Drivers/Spi/MvSpiDxe.c | 6 +- Platform/Marvell/Include/Protocol/Spi.h | 37 +++ Platform/Marvell/Include/Protocol/SpiFlash.h | 4 +- Platform/Marvell/Marvell.dec | 7 +- 25 files changed, 722 insertions(+), 427 deletions(-) create mode 100644 Platform/Marvell/Documentation/Build.txt create mode 100644 Platform/Marvell/Documentation/PortingGuide.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/ComPhy.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/I2c.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Mdio.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Mpp.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/PciEmulation.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Phy.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Pp2.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Reset.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Spi.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/SpiFlash.txt delete mode 100644 Platform/Marvell/Documentation/PortingGuide/Utmi.txt -- 1.8.3.1