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::231; helo=mail-lf0-x231.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (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 888932096F33B for ; Mon, 4 Jun 2018 09:42:13 -0700 (PDT) Received: by mail-lf0-x231.google.com with SMTP id n15-v6so8963755lfn.10 for ; Mon, 04 Jun 2018 09:42:13 -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=WVlqXO7bGnmmEOL1bHBf0F7h700zF5zT1oZ9UsH3bgQ=; b=ka30EoFievDROshicwuQ8l8MLb9vfbLFZDuLD4rGVlfRdqAN953/VRvRF8i6F+hVI+ IXRc0u2NexNvyIPJRvxNyahPpUUogjqTyb7pLn23mQW7rvlDszMJLWty2sOv5g154W19 B/gWvItYI/0uKMJCA+SjBmnnVsAO98bwom2xda4CrqQvYxUwiz64IgrmmEmT4RM9adCe ZfMQpX9/Js+RxSKN8oQuT17MDC5KL+5SfzImUpwiVN5jW96j/syrXdxoOVHhs4PRKrvm nzZYoDxPSXpQdpnWBQ2PJpY+OBQ9bfYQdmCn5AHhEAkx4ubBokbD0rFJNHPbmFY3m3QV sH0g== 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=WVlqXO7bGnmmEOL1bHBf0F7h700zF5zT1oZ9UsH3bgQ=; b=dZGJszVuHlO9ifxewxidFMQSxi5ZUyRjp6ERDYZBuv8MFbD52oZpbxzHIx8AeFYM1M wrytIq2t8KS+efNMRuOWzDm5brbYdBc+UHBHZdM+ArLKA9SPWQvfraLCXrQESr0UQ1oz OTA1B4dQb//xKz1kasvWCoTJdhKRizVUpoaXlFclq+S/HqZ96M510/yp9kjRILp9W2A6 5ynrWronDsx21GX/PagvBQ4+Ok46pESKK021WAQYSevDOSc2ZREOdKDrPiqwQZmp+MTM JjRdrR3eyPsPQSTv43DC3eGHbUnbVCmvUZhfxAOCYtZ2JXEoyK+RGMgzurwx4bnkP8Uy ZPBA== X-Gm-Message-State: ALKqPwfD2XnSF+rhANiZLRR7khHSPvC9/fluuJ+szn2Kt+EBo8yRHV++ MV9zWpB3NriaB+7rUlF7Cl1syimz018= X-Google-Smtp-Source: ADUXVKJNp3YC3ifcwLLzaW3yo13B39ocwgGMf9UzTVJEnnZMQP+3KTizggWGgeL+gtdD8lyO2wneeQ== X-Received: by 2002:a19:944f:: with SMTP id w76-v6mr13891978lfd.90.1528130530594; Mon, 04 Jun 2018 09:42:10 -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 j11-v6sm2140955lja.42.2018.06.04.09.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jun 2018 09:42:09 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jinghua@marvell.com, jaz@semihalf.com, davidsn@marvell.com Date: Mon, 4 Jun 2018 18:41:52 +0200 Message-Id: <1528130517-11387-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 Subject: [platforms PATCH v3 0/5] Armada capsule support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2018 16:42:14 -0000 Hi, This is a third version of the Marvell Armada SoCs capsule support. I spotted minor issue in 3/5, so I resend entire series instead of only 5/5. The last patch introduces significant change in the final capsule generation - copying file is not required, a path to it has to be passed with new '-D ARM_TRUSTED_FIRMWARE_IMAGE_PREFIX'. Also now the .dsc/.fdf files are common for Armada7k8k SoC family, so during capsule generation appropriate '-D PLATFORM_NAME' parameter is required. More details can be found in the commit logs and a changelog below. The code is also available in the github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/capsule-upstream-r20180604-2 I am looking forward to the comments/remarks. Best regards, Marcin Changelog: v2 -> v3: 1,2,3,4/5 * Add Leif's RBs 3/5 * Correct parameters in a debug print 5/5 * Pass platform name and a path to flash-image.bin as capsule build parameters. * Move .dsc/.fdf files under Silicon/Marvell/Armada7k8k, so that they can be reused by all boards added in future * Update commit log. v1 -> v2: 1/5 * Add RB 2/5 * Move PEI stack base to the end of 2MB region reserved for ARM-TF PSCI 3/5 * New patch adding progress API usage in SPI flash protocol 4/5 * Add PerformFlashWriteWithProgress David Sniatkiwicz (1): Marvell/Armada7k8k: Introduce capsule FW update implementation Marcin Wojtas (4): Marvell/Armada70x0Db: Shift main FV from 0x0 address Marvell/Aramda7k8k: Enable PEI booting stage Marvell/Drivers: MvSpiFlashDxe: Add progress API Marvell/Armada7k8k: Wire up capsule support Platform/Marvell/Armada70x0Db/Armada70x0Db.fdf | 96 +++++- Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc | 81 ++++- Silicon/Marvell/Armada7k8k/Armada7k8kCapsule.dsc | 46 +++ Silicon/Marvell/Armada7k8k/Armada7k8kCapsule.fdf | 70 +++++ Silicon/Marvell/Armada7k8k/Feature/Capsule/PlatformFlashAccessLib/PlatformFlashAccessLib.c | 329 ++++++++++++++++++++ Silicon/Marvell/Armada7k8k/Feature/Capsule/PlatformFlashAccessLib/PlatformFlashAccessLib.inf | 52 ++++ Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.aslc | 81 +++++ Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf | 50 +++ Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptorPei.c | 74 +++++ Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareUpdateConfig/SystemFirmwareUpdateConfig.ini | 26 ++ Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.c | 60 ++++ Silicon/Marvell/Include/Protocol/SpiFlash.h | 14 + 12 files changed, 971 insertions(+), 8 deletions(-) create mode 100644 Silicon/Marvell/Armada7k8k/Armada7k8kCapsule.dsc create mode 100644 Silicon/Marvell/Armada7k8k/Armada7k8kCapsule.fdf create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/PlatformFlashAccessLib/PlatformFlashAccessLib.c create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/PlatformFlashAccessLib/PlatformFlashAccessLib.inf create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.aslc create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptorPei.c create mode 100644 Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareUpdateConfig/SystemFirmwareUpdateConfig.ini -- 2.7.4