From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::241; helo=mail-lf0-x241.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (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 70E52203555F0 for ; Fri, 3 Nov 2017 10:53:32 -0700 (PDT) Received: by mail-lf0-x241.google.com with SMTP id k40so4072377lfi.4 for ; Fri, 03 Nov 2017 10:57:27 -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; bh=SoaCy+iB4lufcYxFuHIeOjHjfzEtvwswgZ8eSAsvlZQ=; b=TvOddLA+s+v99WgFYhbUgQge82NNkxygipbjhCT02ZSVIwtCjNauV0mwRdSMcO5/kJ za0LfD+ZRBE2BdHcxyEtI5N0LkDWF6IHUVUnFOx2r4IQmyaTyXqls0DquFOBJ4ncq1RP LkiB0R2gU/Yc9PZp1jj7wzwvgZiqkDhHFx/TRE/xO/hRmCcupGpjrszPINg/bBx4g5LT UOFff7qx5CEfD/58a/DOgQnT61X1Bv/r5EyFno/BNwq0Cs+rql2gub+UoyEKANcK0tK/ 2eWwRsxgPZrXle35AhpAt0BEiup6RAGY/2d28d53gErxJ7M4EuvU7lxunou7VYi7qgFz smag== 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; bh=SoaCy+iB4lufcYxFuHIeOjHjfzEtvwswgZ8eSAsvlZQ=; b=cBEsUsaSVsdF9O2YGdyMEZxULIoZzryWARnb1xp3IzXKuOvCh+VS08VLSCS5b29kZH 4wVHABPluUwipHV4W36IbKgeCCwISwrdIIAXUnyd8jueMg3BVlFmYLh5hOpbjsHGvnie fD7n5H1XlaWSKFwphjUkN/WNUtBeZJMCGotaNTCY1Aq0dkOUOzd8/oO6YW/GTb1kW4i+ 54YZE4MA0rTahc2tmdjDmBcBGpElF1Rs172+My8Y/QiGn/u0WwaVvZcrBYheNb6AUITn shg3hL9M1uRfRCkzJfPuW+YFiNrNV1vVh9p+oR1gvh4OJ8dEwQxGUNOevM7/9eGfLQ3W +GtQ== X-Gm-Message-State: AMCzsaVNVqRcFk7ZDu/NZywytSGhl//3s0+hrdJTgSJ4I/fD63YVKxif 71oUyJMuKWFaHf2gxPU3a3wVsnqMDjg= X-Google-Smtp-Source: ABhQp+Rs6Hn9CWY2O+4novIQhPmiFouOD+dFNplsY7yHQFZ40iO9qNwKMFmHBUg8J3Vr8nZFa1nb9Q== X-Received: by 10.46.67.204 with SMTP id z73mr3231228lje.61.1509731845539; Fri, 03 Nov 2017 10:57:25 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id g29sm1120441lfh.3.2017.11.03.10.57.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:57:24 -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, mw@semihalf.com, jsd@semihalf.com Date: Fri, 3 Nov 2017 18:57:09 +0100 Message-Id: <1509731835-5664-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 Subject: [platforms: PATCH v2 0/6] Armada 7k/8k SPI improvements pt 2. 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, 03 Nov 2017 17:53:32 -0000 Hi, I submit corrected version of the Armada SPI improvements after the first round of review. There were no significant changes comparing to v1, please check the changelog below for the details. Patches are available in the github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/spi-upstream-r20171103 NorFlashInfoLib: https://github.com/MarvellEmbeddedProcessors/edk2/commits/norlib-upstream-r20171103 I'm looking forward to the comments or remarks. Best regards, Marcin Changelog: v1 -> v2 1/6 - Replace NOR_FLASH_ID_DEFAULT_LEN with PcdGetSize (PcdSpiFlashId) 2/6 - Adjust to renamed functions and macros according to NorFlashInfoLib v2 - Restore handling of CMD_ERASE_32K - Check NOR_FLASH_4B_ADDR only once and use SPI_DEVICE structure instead 3/6 - Improve commit log 4/6 - Use global variable explicitly (mSlave) 5/6 - Use NOR_FLASH_ID_SPANSION from EmbeddedPkg/Include/Library/NorFlashInfoLib.h 6/6 - Add RB Marcin Wojtas (6): Marvell/Drivers: MvSpiFlash: Improve ReadId Marvell/Drivers: MvSpiFlash: Enable dynamic SPI Flash detection Marvell/Drivers: MvSpiFlash: Remove duplicated macros Marvell/Applications: SpiTool: Do not override existing slave device Marvell/Drivers: MvSpiFlash: Fix bank selection for Spansion Marvell/Drivers: MvSpiDxe: Keep data in SPI_DEVICE structure Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c | 25 +---- Platform/Marvell/Applications/FirmwareUpdate/FUpdate.inf | 4 +- Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c | 57 ++++------ Platform/Marvell/Applications/SpiTool/SpiFlashCmd.inf | 2 +- Platform/Marvell/Armada/Armada.dsc.inc | 1 + Platform/Marvell/Armada/Armada70x0.dsc | 5 - Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 116 ++++++++++---------- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.h | 3 + Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf | 9 +- Platform/Marvell/Drivers/Spi/MvSpiDxe.c | 63 ++++++----- Platform/Marvell/Drivers/Spi/MvSpiDxe.h | 1 + Platform/Marvell/Drivers/Spi/MvSpiDxe.inf | 2 + Platform/Marvell/Include/Protocol/Spi.h | 7 ++ Platform/Marvell/Include/Protocol/SpiFlash.h | 14 +-- Platform/Marvell/Marvell.dec | 6 - Silicon/Marvell/Documentation/PortingGuide.txt | 18 --- 16 files changed, 142 insertions(+), 191 deletions(-) -- 2.7.4