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 6BFC97803CD for ; Thu, 31 Aug 2023 22:28:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=F0T7A3nmdxkEi1tlbUp/VmsjVhSZ3hB2416JpAxXDhU=; 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; s=20140610; t=1693520915; v=1; b=vo6AhbQ9AuxElttRLcMpmLCSeBbU9Jo3CctLfEMEilKS6TKJk0kjUsPLBywbcmZyUEvtpkso CVEToQoCXLpVZvoHrUBZ9uU1/cxgoZVaDKruEqgR2KcB6tWx/YbKkjvkh4hfIqUgBbTvA8NkmMi 04PsqrfS29663ljMg3CEh868= X-Received: by 127.0.0.2 with SMTP id eqb2YY7687511xdNXSgRM5K3; Thu, 31 Aug 2023 15:28:35 -0700 X-Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.214]) by mx.groups.io with SMTP id smtpd.web10.17490.1693489477308554217 for ; Thu, 31 Aug 2023 06:44:37 -0700 X-Received: from rv-uefi.. (unknown [211.87.236.31]) by zwqz-smtp-mta-g2-1 (Coremail) with SMTP id _____wAH7XU4mfBkG0dEAw--.10593S11; Thu, 31 Aug 2023 21:44:29 +0800 (CST) From: caiyuqing_hz@163.com To: devel@edk2.groups.io, sunilvl@ventanamicro.com Cc: caiyuqing379 <202235273@mail.sdu.edu.cn>, USER0FISH Subject: [edk2-devel] [PATCH v2 7/8] Sophgo/SG2042Pkg: Add SG2042Pkg. Date: Thu, 31 Aug 2023 21:44:23 +0800 Message-Id: <13729a02e720ff7a141841c0d545414a625a0eae.1693483202.git.202235273@mail.sdu.edu.cn> In-Reply-To: References: MIME-Version: 1.0 X-CM-TRANSID: _____wAH7XU4mfBkG0dEAw--.10593S11 X-Coremail-Antispam: 1Uf129KBjvJXoWxAryUKw4DWr15CFW8GF18Grg_yoWrXryrpr 4rXFnak3yxGryIqr43tayjgr45AF1FkF1UJ3sruw15u393G3WfZF1UKFyxJrZ7Jw4xCr17 Kr42vFWFkF90qaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jspnQUUUUU= X-Originating-IP: [211.87.236.31] X-CM-SenderInfo: 5fdl535tlqwslk26il2tof0z/xtbBdAPcxVgi7OppwQAAs6 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,caiyuqing_hz@163.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: sd7F3kIQ8FVqxIxqUmyioRvgx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=vo6AhbQ9; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=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: caiyuqing379 <202235273@mail.sdu.edu.cn> Add SG2042Pkg for Sophgo SG2042 platform. Provides PCD tokens. Signed-off-by: caiyuqing379 <202235273@mail.sdu.edu.cn> Co-authored-by: USER0FISH Cc: dahogn Cc: meng-cz Cc: yli147 Cc: ChaiEvan Cc: Sunil V L --- Platform/Sophgo/SG2042Pkg/SG2042Pkg.dec | 35 ++++++++++++++++++++ Platform/Sophgo/SG2042Pkg/SG2042Pkg.uni | 13 ++++++++ Platform/Sophgo/SG2042Pkg/SG2042PkgExtra.uni | 12 +++++++ 3 files changed, 60 insertions(+) create mode 100644 Platform/Sophgo/SG2042Pkg/SG2042Pkg.dec create mode 100644 Platform/Sophgo/SG2042Pkg/SG2042Pkg.uni create mode 100644 Platform/Sophgo/SG2042Pkg/SG2042PkgExtra.uni diff --git a/Platform/Sophgo/SG2042Pkg/SG2042Pkg.dec b/Platform/Sophgo/SG2042Pkg/SG2042Pkg.dec new file mode 100644 index 000000000000..ed242de3651d --- /dev/null +++ b/Platform/Sophgo/SG2042Pkg/SG2042Pkg.dec @@ -0,0 +1,35 @@ +## @file SG2042Pkg.dec +# This Package provides modules and libraries.for Sophgo SG2042 platform. +# +# Copyright (c) 2023, Academy of Intelligent Innovation, Shandong Universiy, China.P.R. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + DEC_SPECIFICATION = 0x0001001b + PACKAGE_NAME = SG2042Pkg + PACKAGE_UNI_FILE = SG2042Pkg.uni + PACKAGE_GUID = A10E7DF0-B8AB-4DD0-B383-46358139D313 + PACKAGE_VERSION = 1.0 + +[Includes] + Include + +[Protocols] + gSophgoMmcHostProtocolGuid = { 0x3E591C00, 0x9E4A, 0x11DF, {0x92, 0x44, 0x00, 0x02, 0xA5, 0xF5, 0xF5, 0x1B } } + +[Guids] + gSophgoSG2042PlatformPkgTokenSpaceGuid = {0x779E9346, 0x3C24, 0x478C, { 0xB1, 0x60, 0xB6, 0x09, 0xFC, 0xED, 0xA0, 0x72 }} + +[PcdsFixedAtBuild] + gSophgoSG2042PlatformPkgTokenSpaceGuid.PcdSG2042SDIOBase|0x0|UINT64|0x00001001 + gSophgoSG2042PlatformPkgTokenSpaceGuid.PcdForceNoMMU|0x0|BOOLEAN|0x1002 + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0|UINT64|0x00001004 + gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|0x0|UINT64|0x00001005 + gHisiTokenSpaceGuid.PcdSerialPortSendDelay|0x0|UINT32|0x00001006 + gHisiTokenSpaceGuid.PcdUartClkInHz|0x0|UINT32|0x00001007 + +[UserExtensions.TianoCore."ExtraFiles"] + SG2042PkgExtra.uni diff --git a/Platform/Sophgo/SG2042Pkg/SG2042Pkg.uni b/Platform/Sophgo/SG2042Pkg/SG2042Pkg.uni new file mode 100644 index 000000000000..c7a606cbb2f3 --- /dev/null +++ b/Platform/Sophgo/SG2042Pkg/SG2042Pkg.uni @@ -0,0 +1,13 @@ +// /** @file +// Sophgo SG2042 Package Localized Strings and Content. +// +// Copyright (c) 2023, Academy of Intelligent Innovation, Shandong Universiy, China.P.R. All rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + + +#string STR_PACKAGE_ABSTRACT #language en-US "Provides Sophgo RISC-V SG2042 platform modules and libraries" + +#string STR_PACKAGE_DESCRIPTION #language en-US "This Package Sophgo RISC-V SG2042 platform modules and libraries." diff --git a/Platform/Sophgo/SG2042Pkg/SG2042PkgExtra.uni b/Platform/Sophgo/SG2042Pkg/SG2042PkgExtra.uni new file mode 100644 index 000000000000..b14545b214eb --- /dev/null +++ b/Platform/Sophgo/SG2042Pkg/SG2042PkgExtra.uni @@ -0,0 +1,12 @@ +// /** @file +// SiFive U5 Series Package Localized Strings and Content. +// +// Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + +#string STR_PROPERTIES_PACKAGE_NAME +#language en-US +"SG2042 platform package" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108217): https://edk2.groups.io/g/devel/message/108217 Mute This Topic: https://groups.io/mt/101084029/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-