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 DC960D80CF6 for ; Fri, 3 Nov 2023 02:31:54 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=yyPaB5416gY0za64uyTMYdXkDcXlvRgMv35qtOc2IAU=; 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=1698978713; v=1; b=OiltUq+bpaRMcCGLTrmuefHh79U4yXLzIFd+YDoJ00aF5TCFxoWPvHjYTqDXP2bXqaMwfONR nFTYKFuVDLqgi4qzfzvVH5J9lP8KpYcICCNeuo0polxGHK71IoK+5rdHLcSbRxxfdazlc00bV/z N9/OF9PGaWn3WrqG1CbsRUCk= X-Received: by 127.0.0.2 with SMTP id 4RqMYY7687511xNRmHNI6NbG; Thu, 02 Nov 2023 19:31:53 -0700 X-Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by mx.groups.io with SMTP id smtpd.web10.17683.1698978709451303394 for ; Thu, 02 Nov 2023 19:31:52 -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 0D34D808F; Fri, 3 Nov 2023 10:31:25 +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, 3 Nov 2023 10:31:25 +0800 X-Received: from localhost.localdomain (161.142.158.84) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Nov 2023 10:31:20 +0800 From: "John Chew" To: CC: John Chew , Sunil V L , Leif Lindholm , Michael D Kinney , Li Yong , mindachen1987 Subject: [edk2-devel] [PATCH v4 0/6] StarFive/VisionFive2: Add VisionFive 2 platform Date: Fri, 3 Nov 2023 10:30:49 +0800 Message-ID: <20231103023055.1629-1-yuinyee.chew@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [161.142.158.84] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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: WLic0UodKEICrcvLWEgeVVzBx7686176AA= 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=OiltUq+b; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none v4: - Add maintainer.txt patch [Sunil] - Add Sunil's Ack in patch 1/6...5/6 [John Chew] 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 Repository:=20 Cc: Sunil V L Cc: Leif Lindholm Cc: Michael D Kinney Cc: Li Yong Cc: mindachen1987 John Chew (3): StarFive/JH7110Pkg: Add SPI protocol and driver support StarFive/JH7110Pkg: Add firmware volume block protocol Maintainers.txt: Add maintainers for StarFive platform mindachen1987 (3): StarFive/JH7110Pkg: Add Pci controller driver StarFive/JH7110Pkg: Add JH7110 Silicon Package StarFive/VisionFive2: Add VisionFive 2 platform Maintainers.txt = | 7 + 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 + 40 files changed, 12059 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 (#110589): https://edk2.groups.io/g/devel/message/110589 Mute This Topic: https://groups.io/mt/102357015/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-