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 71D5DAC0D5C for ; Mon, 23 Oct 2023 07:19:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=u2RWbachP/NKYTH+OSm4RdXaoEzzbCsVxHSksfwN0Do=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1698045595; v=1; b=ZaTwNhoiNeLoURwZcaXoYT4NJO+E8xt4y2aWSEb1lNwzz5e6XcoBoZGdBkXOKcMyYdwlUJ1y wyJYfC+hSqWIn823lZS6WBFd+FeQC1ZAf5I28Yf72v9WnJbEemrFw6oOknhPm+u7Rz6p1A2KoIf L6kuAQ5chFqV5SKusTGhEdrc= X-Received: by 127.0.0.2 with SMTP id WyF2YY7687511x42vWU8omPA; Mon, 23 Oct 2023 00:19:55 -0700 X-Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by mx.groups.io with SMTP id smtpd.web11.115589.1698045593502738413 for ; Mon, 23 Oct 2023 00:19:54 -0700 X-Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id F3C5D24E389; Mon, 23 Oct 2023 15:19:42 +0800 (CST) X-Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 23 Oct 2023 15:19:42 +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; Mon, 23 Oct 2023 15:19:39 +0800 From: "John Chew" To: CC: mindachen1987 , Sunil V L , Leif Lindholm , Michael D Kinney , "Cc : Li Yong" , John Chew Subject: [edk2-devel] [PATCH v2 4/4] StarFive/JH7110Pkg: Add JH7110 Silicon Package Date: Mon, 23 Oct 2023 15:18:51 +0800 Message-ID: <20231023071851.813-5-yuinyee.chew@starfivetech.com> In-Reply-To: <20231023071851.813-1-yuinyee.chew@starfivetech.com> References: <20231023071851.813-1-yuinyee.chew@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] 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: MstwRWKqKo5U57rNRvGxpEc1x7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ZaTwNhoi; 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 From: mindachen1987 v2: - Remove redundant commented PCDs [Sunil] - Remove unused PCD: PcdJH7110RegistersAddress [John Chew] - Added PCIE PCDs: PcdPciBusMin, PcdPciBusMax, PcdPciBusMax, PcdPciIoSize, PcdPciIoOffset, PcdPci0Mmio32Base, PcdPci0Mmio32Size, PcdPci0Mmio64Base, PcdPci0Mmio64Size, PcdPci1Mmio32Base, PcdPci1Mmio32Size, PcdPci1Mmio64Base, PcdPci1Mmio64Size [John Chew] v1: - Add a new JH7110 silicon package. - These files Contain platfrom specific Guids, PCDs and defines used for JH7110 SoC. Cc: Sunil V L Cc: Leif Lindholm Cc: Michael D Kinney Cc: Cc: Li Yong Co-authored-by: John Chew Signed-off-by: mindachen1987 --- Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7110.h | 21 ++++++++ Silicon/StarFive/JH7110Pkg/JH7110Pkg.dec | 57 ++++++++= ++++++++++++ 2 files changed, 78 insertions(+) diff --git a/Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7110.h b= /Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7110.h new file mode 100644 index 000000000000..142e7be10c48 --- /dev/null +++ b/Silicon/StarFive/JH7110Pkg/Include/IndustryStandard/JH7110.h @@ -0,0 +1,21 @@ +/** @file + * + * Copyright (c) 2023, StarFive Technology Co., Ltd. All rights reserved.=
+ * + * SPDX-License-Identifier: BSD-2-Clause-Patent + * + **/ + +#ifndef JH7110_H__ +#define JH7110_H__ + +/* Generic PCI addresses */ +#define PCIE_TOP_OF_MEM_WIN (FixedPcdGet64 (PcdPciBusMmioAdr)) +#define PCIE_CPU_MMIO_WINDOW (FixedPcdGet64 (PcdPciCpuMmioAdr)) +#define PCIE_BRIDGE_MMIO_LEN (FixedPcdGet32 (PcdPciBusMmioLen)) + +/* PCI root bridge control registers location */ +#define PCIE_REG_BASE (FixedPcdGet64 (PcdPciRegBase)) +#define PCIE_CONFIG_BASE (FixedPcdGet64 (PcdPciConfigRegBase)) + +#endif /* JH7110_H__ */ diff --git a/Silicon/StarFive/JH7110Pkg/JH7110Pkg.dec b/Silicon/StarFive/JH= 7110Pkg/JH7110Pkg.dec new file mode 100644 index 000000000000..f9dc5ab3781d --- /dev/null +++ b/Silicon/StarFive/JH7110Pkg/JH7110Pkg.dec @@ -0,0 +1,57 @@ +## @file +# +# Copyright (c) 2023, StarFive Technology Co., Ltd. All rights reserved.<= BR> +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + DEC_SPECIFICATION =3D 0x0001001A + PACKAGE_NAME =3D JH7110Pkg + PACKAGE_GUID =3D D4B585C5-EBCA-4779-B974-05A3CF2F10C4 + PACKAGE_VERSION =3D 1.0 + +[Includes] + Include + +[Guids] + gJH7110TokenSpaceGuid =3D {0x44045e56, 0x7056, 0x4be6, {0x88, 0xc0, 0x49= , 0x0c, 0x67, 0x90, 0x2f, 0xba}} + +[PcdsFixedAtBuild.common] +# Memory map + gJH7110TokenSpaceGuid.PcdJH7110FlashVarOffset|0x0|UINT32|0x00000001 + +# PCIe + gJH7110TokenSpaceGuid.PcdPciRegBase|0x2b000000|UINT64|0x00000002 + gJH7110TokenSpaceGuid.PcdPciBusMmioAdr|0x0|UINT64|0x00000003 + gJH7110TokenSpaceGuid.PcdPciBusMmioLen|0x0|UINT32|0x00000004 + gJH7110TokenSpaceGuid.PcdPciCpuMmioAdr|0x0|UINT64|0x00000005 + gJH7110TokenSpaceGuid.PcdPciConfigRegBase|0x940000000|UINT64|0x00000006 + gJH7110TokenSpaceGuid.PcdPciBusMin|0x0|UINT32|0x10000007 + gJH7110TokenSpaceGuid.PcdPciBusMax|0x0|UINT32|0x10000008 + gJH7110TokenSpaceGuid.PcdPciIoBase|0x0|UINT64|0x10000009 + gJH7110TokenSpaceGuid.PcdPciIoSize|0x0|UINT64|0x1000000A + gJH7110TokenSpaceGuid.PcdPciIoOffset|0x0|UINT64|0x1000000B + gJH7110TokenSpaceGuid.PcdPci0Mmio32Base|0x0|UINT32|0x1000000C + gJH7110TokenSpaceGuid.PcdPci0Mmio32Size|0x0|UINT32|0x1000000D + gJH7110TokenSpaceGuid.PcdPci0Mmio64Base|0x0|UINT64|0x1000000E + gJH7110TokenSpaceGuid.PcdPci0Mmio64Size|0x0|UINT64|0x1000000F + gJH7110TokenSpaceGuid.PcdPci1Mmio32Base|0x0|UINT32|0x10000010 + gJH7110TokenSpaceGuid.PcdPci1Mmio32Size|0x0|UINT32|0x1000011 + gJH7110TokenSpaceGuid.PcdPci1Mmio64Base|0x0|UINT64|0x1000012 + gJH7110TokenSpaceGuid.PcdPci1Mmio64Size|0x0|UINT64|0x1000013 + +# SPI + gJH7110TokenSpaceGuid.PcdSpiFlashRegBase|0|UINT32|0x1000014 + gJH7110TokenSpaceGuid.PcdSpiFlashAhbBase|0|UINT64|0x1000015 + gJH7110TokenSpaceGuid.PcdSpiFlashFifoWidth|0|UINT8|0x10000016 + gJH7110TokenSpaceGuid.PcdSpiFlashRefClkHz|0|UINT32|0x10000017 + gJH7110TokenSpaceGuid.PcdSpiFlashTshslNs|0|UINT32|0x10000018 + gJH7110TokenSpaceGuid.PcdSpiFlashTsd2dNs|0|UINT32|0x1000019 + gJH7110TokenSpaceGuid.PcdSpiFlashTchshNs|0|UINT32|0x100001A + gJH7110TokenSpaceGuid.PcdSpiFlashTslchNs|0|UINT32|0x100001B + +[Protocols] + gJH7110SpiMasterProtocolGuid =3D { 0xA33C46E0, 0x4FB6, 0x4AA3, { 0x8E, 0= x66, 0x00, 0x06, 0x9F, 0x3A, 0x11, 0x81 }} + gJH7110SpiFlashProtocolGuid =3D { 0x5ECECDF6, 0x81DA, 0x4E10, { 0x9D, 0= x4B, 0x26, 0x65, 0x8C, 0x03, 0xAB, 0xBC }} --=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 (#109899): https://edk2.groups.io/g/devel/message/109899 Mute This Topic: https://groups.io/mt/102130708/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-