From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 3C9259408EF for ; Fri, 27 Oct 2023 03:23:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Zsz9yQH9yhB/K2tnAEkJCGFVQcRbxwlQqJBnQWD5wl8=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1698377027; v=1; b=JLvpWza/ff0Umv5ALUIWVK4/lME0K2hXwNgG3ON8bi9/hoKUbNCBQxbhlu3ltTs6nYH3tT7l rhQE7t/NrD95g5yF89yLn5vEvx15LqCr0a0zTYen2BSsir82ir6BKFlYyez7RIOeuMgrzrevvFS EOAleaTLvrRSWaOGH+tZGDc8= X-Received: by 127.0.0.2 with SMTP id TXPbYY7687511xoAhjS07Ljf; Thu, 26 Oct 2023 20:23:47 -0700 X-Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by mx.groups.io with SMTP id smtpd.web11.89090.1698377022502532258 for ; Thu, 26 Oct 2023 20:23:46 -0700 X-Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id E6DC68082; Fri, 27 Oct 2023 11:23:28 +0800 (CST) X-Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 27 Oct 2023 11:23:28 +0800 X-Received: from localhost.localdomain (202.188.176.82) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 27 Oct 2023 11:23:24 +0800 From: "John Chew" To: CC: John Chew , Sunil V L , Leif Lindholm , Michael D Kinney , Li Yong , mindachen1987 Subject: [edk2-devel] [PATCH v3 0/5] StarFive/VisionFive2: Add VisionFive 2 platform Date: Fri, 27 Oct 2023 11:19:01 +0800 Message-ID: <20231027031906.1814-1-yuinyee.chew@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yuinyee.chew@starfivetech.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: CaK5lGIvRbeZexr6QeXqunoPx7686176AA= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="JLvpWza/"; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io v3: - Combine "Add VisionFive 2 platform" patch series with "Patches for JH7110 SoC platform" patch series [Sunil] - Change commit message for [1/5], [4/5], [5/5] in this patch series [Sunil] v2: - Change PlatformBootManagerLib to: Platform/RISC-V/PlatformPkg/.../PlatformBootManagerLib.inf [Sunil] - Added PCIE PCDs PcdPciBusMin, PcdPciBusMax, PcdPciIoBase, PcdPciIoSize PcdPciIoOffset, PcdPci0Mmio32Base, PcdPci0Mmio32Size PcdPci0Mmio64Base, PcdPci0Mmio64Size, PcdPci1Mmio32Base PcdPci1Mmio32Size, PcdPci1Mmio64Base, PcdPci1Mmio64Size [John Chew] - Include all maintainer in all patches in this series [Sunil] - Added missing commit message to patches 1/6, 2/6, 6/6 [Sunil] - Remove commented code in JH7110.h [Sunil] - Remove BootServicesDxe/BootServicesDxe.inf, as it is not required=20 anymore because memory allocation is handle by MMC driver [Sunil] - Remove PlatformBootManagerLib.inf and change PlatformBootManagerLib to "Platform/RISC-V/PlatformPkg/.../PlatformBootManagerLib.inf" [Sunil]=20 - Added PCDs for PCIE (Please refer to patch 0001 for details) [John Chew= ] v1: - Added new platform support for VisionFive2 SBC. - Boot flow in VF2 using EDK2 as bootloader: BootROM -> U-Boot SPL -> OpenSBI -> EDK2 -> Linux -> OS - Supported boot source for Linux from EDK2: - SD Card - eMMC - NVMe - USB - In this patches it include all the platform specific drivers/protocol that is being use for JH7110 SoC platform. All the drivers includes: 1. PCIE driver for NVME and USB (GT710 graphic in progress) 2. QSPI Flash driver for efi variable 3. FVB driver for efi variable 4. Boot service memory allocation driver 5. Platform boot manager for graphical console display Cc: Sunil V L Cc: Leif Lindholm Cc: Michael D Kinney Cc: Li Yong Cc: mindachen1987 John Chew (2): StarFive/JH7110Pkg: Add SPI protocol and driver support StarFive/JH7110Pkg: Add firmware volume block protocol mindachen1987 (3): StarFive/JH7110Pkg: Add Pci controller driver StarFive/JH7110Pkg: Add JH7110 Silicon Package StarFive/VisionFive2: Add VisionFive 2 platform Platform/StarFive/VisionFive2/DeviceTree/Gpio.h = | 42 + Platform/StarFive/VisionFive2/DeviceTree/Irq.h = | 20 + Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkGen.h = | 398 +++++ Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkIsp.h = | 57 + Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkVout.h = | 68 + Platform/StarFive/VisionFive2/DeviceTree/JH7110PinCtrl.h = | 1573 +++++++++++++++++ Platform/StarFive/VisionFive2/DeviceTree/JH7110Power.h = | 22 + Platform/StarFive/VisionFive2/DeviceTree/JH7110Rst.h = | 228 +++ Platform/StarFive/VisionFive2/DeviceTree/Led.h = | 90 + Platform/StarFive/VisionFive2/DeviceTree/StarFiveClk.dtsi = | 130 ++ Platform/StarFive/VisionFive2/DeviceTree/StarFiveHdmi.dtsi = | 28 + Platform/StarFive/VisionFive2/DeviceTree/StarFiveJH7110.dtsi = | 1812 ++++++++++++++++++++ Platform/StarFive/VisionFive2/DeviceTree/StarFivePwmDac.dtsi = | 26 + Platform/StarFive/VisionFive2/DeviceTree/StarFiveVisionFive2.dts = | 211 +++ Platform/StarFive/VisionFive2/DeviceTree/StarFiveVisionFive2.dtsi = | 838 +++++++++ Platform/StarFive/VisionFive2/DeviceTree/Thermal.h = | 16 + Platform/StarFive/VisionFive2/DeviceTree/VisionFive2DeviceTree.inf = | 36 + Platform/StarFive/VisionFive2/VarStore.fdf.inc = | 77 + Platform/StarFive/VisionFive2/VisionFive2.dsc = | 596 +++++++ Platform/StarFive/VisionFive2/VisionFive2.fdf = | 284 +++ Platform/StarFive/VisionFive2/VisionFive2.fdf.inc = | 48 + Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/FvbDxe/FvbDxe.c = | 909 ++++++++++ Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/FvbDxe/FvbDxe.h = | 138 ++ Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/FvbDxe/FvbDxe.inf = | 70 + Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiDxe/SpiDxe.c = | 893 ++++++++++ Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiDxe/SpiDxe.h = | 188 ++ Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiDxe/SpiDxe.inf = | 52 + Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiFlashDxe/SpiFlashDx= e.c | 571 ++++++ Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiFlashDxe/SpiFlashDx= e.h | 35 + Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/SpiFlashDxe/SpiFlashDx= e.inf | 44 + Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7110.h = | 21 + Silicon/StarFive/JH7110Pkg/Include/Protocol/Spi.h = | 163 ++ Silicon/StarFive/JH7110Pkg/Include/Protocol/SpiFlash.h = | 88 + Silicon/StarFive/JH7110Pkg/JH7110Pkg.dec = | 57 + Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/PciHostBridgeLib.c = | 263 +++ Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf = | 61 + Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/PciHostBridgeLibConstr= uctor.c | 406 +++++ Silicon/StarFive/JH7110Pkg/Library/PciSegmentLib/PciSegmentLib.c = | 1460 ++++++++++++++++ Silicon/StarFive/JH7110Pkg/Library/PciSegmentLib/PciSegmentLib.inf = | 33 + 39 files changed, 12052 insertions(+) create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/Gpio.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/Irq.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkGen.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkIsp.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/JH7110ClkVout.= h create mode 100755 Platform/StarFive/VisionFive2/DeviceTree/JH7110PinCtrl.= h create mode 100755 Platform/StarFive/VisionFive2/DeviceTree/JH7110Power.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/JH7110Rst.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/Led.h create mode 100755 Platform/StarFive/VisionFive2/DeviceTree/StarFiveClk.dt= si create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/StarFiveHdmi.d= tsi create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/StarFiveJH7110= .dtsi create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/StarFivePwmDac= .dtsi create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/StarFiveVision= Five2.dts create mode 100755 Platform/StarFive/VisionFive2/DeviceTree/StarFiveVision= Five2.dtsi create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/Thermal.h create mode 100644 Platform/StarFive/VisionFive2/DeviceTree/VisionFive2Dev= iceTree.inf create mode 100644 Platform/StarFive/VisionFive2/VarStore.fdf.inc create mode 100644 Platform/StarFive/VisionFive2/VisionFive2.dsc create mode 100644 Platform/StarFive/VisionFive2/VisionFive2.fdf create mode 100644 Platform/StarFive/VisionFive2/VisionFive2.fdf.inc create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Fvb= Dxe/FvbDxe.c create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Fvb= Dxe/FvbDxe.h create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Fvb= Dxe/FvbDxe.inf create mode 100755 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= Dxe/SpiDxe.c create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= Dxe/SpiDxe.h create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= Dxe/SpiDxe.inf create mode 100755 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= FlashDxe/SpiFlashDxe.c create mode 100755 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= FlashDxe/SpiFlashDxe.h create mode 100644 Silicon/StarFive/JH7110Pkg/Driver/SpiFvbServicesDxe/Spi= FlashDxe/SpiFlashDxe.inf create mode 100644 Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7= 110.h create mode 100644 Silicon/StarFive/JH7110Pkg/Include/Protocol/Spi.h create mode 100644 Silicon/StarFive/JH7110Pkg/Include/Protocol/SpiFlash.h create mode 100644 Silicon/StarFive/JH7110Pkg/JH7110Pkg.dec create mode 100644 Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/Pci= HostBridgeLib.c create mode 100644 Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/Pci= HostBridgeLib.inf create mode 100644 Silicon/StarFive/JH7110Pkg/Library/PciHostBridgeLib/Pci= HostBridgeLibConstructor.c create mode 100644 Silicon/StarFive/JH7110Pkg/Library/PciSegmentLib/PciSeg= mentLib.c create mode 100644 Silicon/StarFive/JH7110Pkg/Library/PciSegmentLib/PciSeg= mentLib.inf --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110171): https://edk2.groups.io/g/devel/message/110171 Mute This Topic: https://groups.io/mt/102214516/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-