From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c0c::233; helo=mail-wr0-x233.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (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 80EFB20945B97 for ; Sun, 24 Sep 2017 18:42:52 -0700 (PDT) Received: by mail-wr0-x233.google.com with SMTP id z39so5216435wrb.8 for ; Sun, 24 Sep 2017 18:46:03 -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=wmMaG1T5d4QOwBTabIrYDBdBxmmEA192DqNjZbN5oEY=; b=1USQbCt9HbsEkPx/qy9tTXlgBV93nlo7kw/qhtCzjV74wiYwY1eXK65RM2IZmQYBO5 Y1H4QOttYPLOvxHntELbZspf70A3J3gvt1ahQ5crEqa6f1T0J35lJT2+Yh9W0DL1diUj /OkFGhY3Y2eGph4Qp73p4zwcbaEPBfo9dHFrVQ+zTb2yR5+U6nQdNPpykNpYtBVcx+Ri +pDLvBlbLyeylOsBbxZK/yJHt366otUjeoUBniscKEKUoTeLADizyha4W+RWAEVKm+ud BBRUuncx7uBu4DPQKbHZ/6FP0eAANAhQ/Wzf+ehJQutdvXRXnAkzy2dXGVDxDDOHFofX vCzQ== 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=wmMaG1T5d4QOwBTabIrYDBdBxmmEA192DqNjZbN5oEY=; b=tcRcIZEE4Mh3GQVQznP66Eyzo/p8+vrpua1hI1aMfSKhGuQi7/AnygxPbXToT8sRUv sDnAfA5L1lxrCbPCYnGilxGd9rGy/Ydej2wKUGVHrHbp/kUnbwl1EKyXx1IR+5LmoeAQ 6wfwCcAZLpp0+2If/drmsh+taD7hSx3oOrPr4ki3Dcabn4csjLLK6IO8OBZpdHokw2Rn XFBAK5+CvL7pP2yp173KWs7TFEqbNBOyXH5ZjeZ/3fECwHLEz5udfvRKDv0/zXsB77sZ qWBxQg4i8NIoZMYypWwplLN+CNI2TieF9iC9aIGl8evv1zSpUZmhsOMdS2y1ikcXdReR 8haw== X-Gm-Message-State: AHPjjUiVyr5lk4ga3yKtFPdj42Y4XNOl2C9eFR2QRyrwr7fOTBwgUqQ+ Tq1YWF2QalPG+xQ560UQTYQ9hsNey4M= X-Google-Smtp-Source: AOwi7QD7j+lS5BjdZZdgwkOfw98ZcuICs5VyD7A5GXKlXmV/64Rk494BOdEJe/ijiLbziupvdhBTGQ== X-Received: by 10.46.25.140 with SMTP id 12mr2282365ljz.145.1506303960788; Sun, 24 Sep 2017 18:46:00 -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 f16sm809520lfe.66.2017.09.24.18.45.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Sep 2017 18:45:59 -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: Mon, 25 Sep 2017 03:51:49 +0200 Message-Id: <1506304319-8620-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Subject: [platforms: PATCH 00/10] 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: Mon, 25 Sep 2017 01:42:52 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Finally I found time to respin SPI patchset. As agreed, I extracted style fixes from dynamic flash detection patch, but its main part is kept aside for now until FlashId table (and additionally both SPI protocols land in the edk2 mainline). A lot of minor fixes were implemented, details can be found in the commit logs and changelog below. Patches are available in the github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/spi-upstream-r20170925 I'm looking forward to the comments or remarks. Best regards, Marcin Changelog v1 -> v2 Slightly improve commit log prefixes. 1/10 * Move documentation to Silicon/Marvell * Update PortingGuide with new paths in edk2-platforms repository 2/10 * Correct error print 4/10 * Sort PCDs 7/10 * Simplify change and remove additional local variable 8/10 * Correct FileSize type and let it really compile for ARM and AARCH64 9/10 * modify macros -> s/SPI_ERASE_SIZE_/SIZE_/ 10/10 * New patch 3/10, 5/10, 6/10 * Add Reviewed-by's Ard Biesheuvel (3): Marvell/Applications/SpiTool: Fix bug in error test Marvell/Applications/FirmwareUpdate: Fix 32-bit issues Marvell/Applications/SpiTool: Fix 32-bit issues Joe Zhou (1): Marvell/Drivers: MvSpiDxe: Fix write bug Marcin Wojtas (4): Marvell/Applications/SpiTool: Enable configurable CS and SCLK mode Platform/Marvell/Armada70x0: set CS and SCLK Mode for SPI flash Marvell/Drivers: MvSpiFlash: Fix usage of erase size parameter Marvell/Drivers: MvSpiFlash: Minor style fix Nir Erez (1): Silicon/Marvell: Refactor Documentation Piotr Król (1): Marvell/Drivers: MvSpiDxe: Log and return correct error Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c | 6 +- Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c | 13 +- Platform/Marvell/Applications/SpiTool/SpiFlashCmd.inf | 2 + Platform/Marvell/Armada/Armada70x0.dsc | 2 + Platform/Marvell/Documentation/Drivers/EepromDriver.txt | 96 ----- Platform/Marvell/Documentation/Drivers/I2cDriver.txt | 64 ---- Platform/Marvell/Documentation/Drivers/SpiDriver.txt | 116 ------ Platform/Marvell/Documentation/PortingGuide/ComPhy.txt | 45 --- Platform/Marvell/Documentation/PortingGuide/I2c.txt | 20 -- Platform/Marvell/Documentation/PortingGuide/Mdio.txt | 7 - Platform/Marvell/Documentation/PortingGuide/Mpp.txt | 48 --- Platform/Marvell/Documentation/PortingGuide/PciEmulation.txt | 31 -- Platform/Marvell/Documentation/PortingGuide/Phy.txt | 45 --- Platform/Marvell/Documentation/PortingGuide/Pp2.txt | 35 -- Platform/Marvell/Documentation/PortingGuide/Reset.txt | 7 - Platform/Marvell/Documentation/PortingGuide/Spi.txt | 16 - Platform/Marvell/Documentation/PortingGuide/SpiFlash.txt | 23 -- Platform/Marvell/Documentation/PortingGuide/Utmi.txt | 35 -- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 36 +- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.h | 6 + Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf | 1 + Platform/Marvell/Drivers/Spi/MvSpiDxe.c | 6 +- Platform/Marvell/Marvell.dec | 3 + Silicon/Marvell/Documentation/Drivers/EepromDriver.txt | 96 +++++ Silicon/Marvell/Documentation/Drivers/I2cDriver.txt | 64 ++++ Silicon/Marvell/Documentation/Drivers/SpiDriver.txt | 116 ++++++ Silicon/Marvell/Documentation/PortingGuide.txt | 377 ++++++++++++++++++++ 27 files changed, 707 insertions(+), 609 deletions(-) delete mode 100644 Platform/Marvell/Documentation/Drivers/EepromDriver.txt delete mode 100644 Platform/Marvell/Documentation/Drivers/I2cDriver.txt delete mode 100644 Platform/Marvell/Documentation/Drivers/SpiDriver.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 create mode 100644 Silicon/Marvell/Documentation/Drivers/EepromDriver.txt create mode 100644 Silicon/Marvell/Documentation/Drivers/I2cDriver.txt create mode 100644 Silicon/Marvell/Documentation/Drivers/SpiDriver.txt create mode 100644 Silicon/Marvell/Documentation/PortingGuide.txt -- 1.8.3.1