From patchwork Mon Dec 4 22:12:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120598 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp1425857edb; Mon, 4 Dec 2017 14:13:16 -0800 (PST) X-Google-Smtp-Source: AGs4zMZxSqzN+ISJ2YeH9gPgsctP7X6sWiQBySlwqkVq0hkSerbJv4B0pZNTivcaEQZSwOi5S4eG X-Received: by 10.98.214.145 with SMTP id a17mr20510419pfl.167.1512425596362; Mon, 04 Dec 2017 14:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512425596; cv=none; d=google.com; s=arc-20160816; b=qNcJ9klq8pBxo+hlXJ3Ry4IRGYKIWWr/F6oSR7ZApzubQGks5W8RPZSsQPKEmFpRa9 ZjQFjMQIO8iz2ITy1gr6yo3GhZYgI3IrDqdJDg/gvqz6WwvDnhHhT8uRCyYkC0NFTrBo ajsEozZPBK67ADt6vyOZDQPxLw/6QJcNRqfz0FikxcMspNrGzIKD00SkXlsosCEJ+2f1 O9MUeGgoIB9w+L6v2nQAxKb62NtF3QBO2BQeIO7S+4ZmoVebmuuVkt8Fu88XG1hkxhK6 snHuYTIebwsuWJJ9wwy+CkhmoTVwLBdmn3d0lfT7XKX5e/eAoSzsGqtxUciTANuJ1vBB /VPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=2RdrsbKdkiv2s0A3c1/IWZDNXN9JLhCtlEdqhhdj9NM=; b=AFIBygC07BGC7uqQEh04hfpaESh9KJrdAeUTZdFRUfezurJHsyKK9MS+uEaS2sf2bF qTI/D2QubnGbZrTJkG7vk7o7P78MMGUqN5u+C7Fch4PnTAOgoyoDzdmnXjaQtjJ1CtRt /m48QBL5W4FXCiWQoiY4ROHDrHO1wjpVimpPlgaoEIwNE0D+NntCctwGUW4xzWGTeixT Bv9hYGwFN1JM8YdODsV0iooC1lhi1PJR4PUFAEbNoAeeSUXC73eaQdnF3/khJtVdWM1i xgU2R8i62PtyMHVDxQN5JaRbee439O5R79aaYiEPX8vCum8jfyD54y8hRubzVO/wCAvW SMTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4t8lsH4; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id l3si9982059pgo.729.2017.12.04.14.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 14:13:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4t8lsH4; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4677922152380; Mon, 4 Dec 2017 14:08:45 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 D483620359E96 for ; Mon, 4 Dec 2017 14:08:43 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id t8so8594978wmc.3 for ; Mon, 04 Dec 2017 14:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=0n52ncPVPOTOsUySdbdieovwiIuU10Jfz3XzfCbMtc0=; b=h4t8lsH4jMcrB7EqgpVPWeBzMDUiQqiqSPNylqLsuCgZgwuHZX8Ln/G10c7W+JylYv Cv9FPS9mipRc+wt6EhdXNUMzc24PuToJJgEIP61Br0iisxWRJxj3tPqeQUxGr3PVVLii TetbXsGfRUIAibnovbpIzqeBY6lL6nglYLoFg= 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=0n52ncPVPOTOsUySdbdieovwiIuU10Jfz3XzfCbMtc0=; b=GxUrKWZQ/39GgYMhjwWNWZOX+m3pQQN2aUqKG9KLYCPpyD1BL4W6pSXneaaWi8gZZw oUDp6m6qJ0qZme6h9cZ+WfiE6g5LAQoMsa7Z4QjfO3/H9L0TJx0Ynuw9Zv35z202J7GO FFbWszuztdzgVHwLiAHW9egSYnuBviOAWBIHelMFUzHBMF+LUxa6Ng0zYGxs58KgVvns e6T3DIHVqpGfUVMBHp23hoi4r6bNckkPBKgxXyH5kF7VMrQWMFcUPSqieudI2r0UlLLt 7LzGvpIxN8BjBruIa3vlC0ta2GErkHQx4o2LjrhgQGuQSKEEBsM2hGudFaAP9aA6aOzx QnFQ== X-Gm-Message-State: AKGB3mKo9ofwG9b18CaNQkJAuBKD3zaP1tlINnlWPO6ma/6Oi7O6VuMy HLSbE/mg4AxkohHjbkzzOpUGrJF2Fdw= X-Received: by 10.28.29.207 with SMTP id d198mr4057629wmd.106.1512425591789; Mon, 04 Dec 2017 14:13:11 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id i3sm12021318wre.33.2017.12.04.14.13.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 14:13:10 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 4 Dec 2017 22:12:33 +0000 Message-Id: <20171204221235.11807-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v3 edk2-platforms 0/2] Move ArmPlatformPkg stuff into edk2-platforms 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: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This v3 series contains the remaining patches that move drivers and other code that is highly specific to ARM Ltd. Versatile Express platforms into edk2-platforms, hopefully making the line between generic drivers for ARM IP and VExpress boards incorporating it less blurry. The most notable change in this version is that the LCD graphics output driver is no longer migrated. There is work ongoing to add Mali support to it, which will hopefully be reusable by other platforms than VExpress ones. Ard Biesheuvel (2): Platform/ARM/VExpress: import VExpressPkg from EDK2 Platform/ARM: import BootMonFs and ArmShellCmdRunAxf from EDK2 Platform/ARM/ARM.dec | 25 + Platform/ARM/Drivers/BootMonFs/BootMonFs.dec | 26 + Platform/ARM/Drivers/BootMonFs/BootMonFs.inf | 63 ++ Platform/ARM/Drivers/BootMonFs/BootMonFsApi.h | 388 +++++++ Platform/ARM/Drivers/BootMonFs/BootMonFsDir.c | 766 ++++++++++++++ Platform/ARM/Drivers/BootMonFs/BootMonFsEntryPoint.c | 529 ++++++++++ Platform/ARM/Drivers/BootMonFs/BootMonFsHw.h | 57 ++ Platform/ARM/Drivers/BootMonFs/BootMonFsImages.c | 222 ++++ Platform/ARM/Drivers/BootMonFs/BootMonFsInternal.h | 101 ++ Platform/ARM/Drivers/BootMonFs/BootMonFsOpenClose.c | 795 +++++++++++++++ Platform/ARM/Drivers/BootMonFs/BootMonFsReadWrite.c | 259 +++++ Platform/ARM/Drivers/BootMonFs/BootMonFsUnsupported.c | 37 + Platform/ARM/Include/Guid/BootMonFsFileInfo.h | 47 + Platform/ARM/Include/Library/ArmShellCmdLib.h | 57 ++ Platform/ARM/JunoPkg/ArmJuno.dsc | 2 +- Platform/ARM/JunoPkg/ArmJuno.fdf | 2 +- Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf | 1 + Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.c | 95 ++ Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.h | 83 ++ Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.inf | 54 + Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.uni | 68 ++ Platform/ARM/Library/ArmShellCmdRunAxf/BootMonFsLoader.c | 154 +++ Platform/ARM/Library/ArmShellCmdRunAxf/BootMonFsLoader.h | 66 ++ Platform/ARM/Library/ArmShellCmdRunAxf/ElfLoader.c | 340 +++++++ Platform/ARM/Library/ArmShellCmdRunAxf/ElfLoader.h | 64 ++ Platform/ARM/Library/ArmShellCmdRunAxf/RunAxf.c | 395 ++++++++ Platform/ARM/Library/ArmShellCmdRunAxf/elf32.h | 258 +++++ Platform/ARM/Library/ArmShellCmdRunAxf/elf64.h | 260 +++++ Platform/ARM/Library/ArmShellCmdRunAxf/elf_common.h | 1059 ++++++++++++++++++++ Platform/ARM/VExpressPkg/AcpiTables/AcpiTables.inf | 3 +- Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.dsc | 29 +- Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.fdf | 8 +- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc | 19 +- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.fdf | 2 +- Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 14 +- Platform/ARM/VExpressPkg/ArmVExpressPkg.dec | 60 ++ Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.c | 90 ++ Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.inf | 40 + Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmHwDxe.c | 38 + Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmHwDxe.inf | 38 + Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c | 519 ++++++++++ Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf | 51 + Platform/ARM/VExpressPkg/Include/Library/ArmPlatformSysConfigLib.h | 63 ++ Platform/ARM/VExpressPkg/Include/Library/LcdPlatformLib.h | 221 ++++ Platform/ARM/VExpressPkg/Include/Platform/CTA15-A7/ArmPlatform.h | 154 +++ Platform/ARM/VExpressPkg/Include/Platform/RTSM/ArmPlatform.h | 79 ++ Platform/ARM/VExpressPkg/Include/VExpressMotherBoard.h | 140 +++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf | 54 + Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7.c | 182 ++++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Helper.S | 81 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Helper.asm | 96 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Mem.c | 182 ++++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/AArch64/RTSMHelper.S | 61 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/Arm/RTSMHelper.S | 97 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/Arm/RTSMHelper.asm | 118 +++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf | 63 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf | 59 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c | 195 ++++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c | 161 +++ Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfig.c | 273 +++++ Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf | 35 + Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.c | 283 ++++++ Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.inf | 37 + Platform/ARM/VExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpress.c | 285 ++++++ Platform/ARM/VExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpressLib.inf | 45 + Platform/ARM/VExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpress.c | 84 ++ Platform/ARM/VExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf | 33 + Platform/ARM/VExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpress.c | 370 +++++++ Platform/ARM/VExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf | 44 + Platform/ARM/VExpressPkg/Library/ResetSystemLib/ResetSystemLib.c | 111 ++ Platform/ARM/VExpressPkg/Library/ResetSystemLib/ResetSystemLib.inf | 36 + 71 files changed, 10785 insertions(+), 41 deletions(-) create mode 100644 Platform/ARM/ARM.dec create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFs.dec create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFs.inf create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsApi.h create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsDir.c create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsEntryPoint.c create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsHw.h create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsImages.c create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsInternal.h create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsOpenClose.c create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsReadWrite.c create mode 100644 Platform/ARM/Drivers/BootMonFs/BootMonFsUnsupported.c create mode 100644 Platform/ARM/Include/Guid/BootMonFsFileInfo.h create mode 100644 Platform/ARM/Include/Library/ArmShellCmdLib.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.c create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.inf create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ArmShellCmdRunAxf.uni create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/BootMonFsLoader.c create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/BootMonFsLoader.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ElfLoader.c create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/ElfLoader.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/RunAxf.c create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/elf32.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/elf64.h create mode 100644 Platform/ARM/Library/ArmShellCmdRunAxf/elf_common.h create mode 100644 Platform/ARM/VExpressPkg/ArmVExpressPkg.dec create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.c create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.inf create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmHwDxe.c create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmHwDxe.inf create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c create mode 100644 Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf create mode 100644 Platform/ARM/VExpressPkg/Include/Library/ArmPlatformSysConfigLib.h create mode 100644 Platform/ARM/VExpressPkg/Include/Library/LcdPlatformLib.h create mode 100644 Platform/ARM/VExpressPkg/Include/Platform/CTA15-A7/ArmPlatform.h create mode 100644 Platform/ARM/VExpressPkg/Include/Platform/RTSM/ArmPlatform.h create mode 100644 Platform/ARM/VExpressPkg/Include/VExpressMotherBoard.h create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Helper.S create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Helper.asm create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibCTA15-A7/CTA15-A7Mem.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/AArch64/RTSMHelper.S create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/Arm/RTSMHelper.S create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/Arm/RTSMHelper.asm create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfig.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpress.c create mode 100644 Platform/ARM/VExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpressLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpress.c create mode 100644 Platform/ARM/VExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpress.c create mode 100644 Platform/ARM/VExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ResetSystemLib/ResetSystemLib.c create mode 100644 Platform/ARM/VExpressPkg/Library/ResetSystemLib/ResetSystemLib.inf -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm