public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: caiyuqing_hz@163.com
To: devel@edk2.groups.io
Cc: sunilvl@ventanamicro.com, quic_llindhol@quicinc.com,
	libing1202@outlook.com, inochiama@outlook.com
Subject: [edk2-devel] [PATCH v3 7/8] Sophgo/SG2042Pkg: Add SG2042Pkg.
Date: Thu,  7 Sep 2023 18:25:50 +0800	[thread overview]
Message-ID: <58ccdbed518781c2f0fea1e86d47df4a2ab3f1c3.1694010673.git.202235273@mail.sdu.edu.cn> (raw)
In-Reply-To: <cover.1694010673.git.202235273@mail.sdu.edu.cn>

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 <libing1202@outlook.com>
Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: yli147 <yong.li@intel.com>
Cc: ChaiEvan <evan.chai@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
---
 Silicon/Sophgo/SG2042Pkg/SG2042Pkg.dec      | 35 +++++++++++++++++++++
 Silicon/Sophgo/SG2042Pkg/SG2042Pkg.uni      | 13 ++++++++
 Silicon/Sophgo/SG2042Pkg/SG2042PkgExtra.uni | 12 +++++++
 3 files changed, 60 insertions(+)
 create mode 100644 Silicon/Sophgo/SG2042Pkg/SG2042Pkg.dec
 create mode 100644 Silicon/Sophgo/SG2042Pkg/SG2042Pkg.uni
 create mode 100644 Silicon/Sophgo/SG2042Pkg/SG2042PkgExtra.uni

diff --git a/Silicon/Sophgo/SG2042Pkg/SG2042Pkg.dec b/Silicon/Sophgo/SG2042Pkg/SG2042Pkg.dec
new file mode 100644
index 000000000000..ed242de3651d
--- /dev/null
+++ b/Silicon/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.<BR>
+#
+# 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/Silicon/Sophgo/SG2042Pkg/SG2042Pkg.uni b/Silicon/Sophgo/SG2042Pkg/SG2042Pkg.uni
new file mode 100644
index 000000000000..c7a606cbb2f3
--- /dev/null
+++ b/Silicon/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.<BR>
+//
+// 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/Silicon/Sophgo/SG2042Pkg/SG2042PkgExtra.uni b/Silicon/Sophgo/SG2042Pkg/SG2042PkgExtra.uni
new file mode 100644
index 000000000000..b14545b214eb
--- /dev/null
+++ b/Silicon/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.<BR>
+//
+// 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 (#108383): https://edk2.groups.io/g/devel/message/108383
Mute This Topic: https://groups.io/mt/101213496/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2023-09-07 12:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-07 10:25 [edk2-devel] [PATCH v3 0/8] EDK2 on RISC-V Sophgo SG2042 platform caiyuqing_hz
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 1/8] Sophgo/SG2042Pkg: Add SmbiosPlatformDxe module caiyuqing_hz
2023-09-15 10:36   ` Sunil V L
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 2/8] Sophgo/SG2042Pkg: Add PlatformUpdateMmuDxe module caiyuqing_hz
2023-09-15 10:41   ` Sunil V L
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 3/8] Sophgo/SG2042Pkg: Add Sophgo SDHCI driver caiyuqing_hz
2023-09-15 10:47   ` Sunil V L
2023-09-15 14:23   ` Leif Lindholm
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 4/8] Sophgo/SG2042Pkg: Add base MMC driver caiyuqing_hz
2023-09-15 10:53   ` Sunil V L
2023-09-15 14:25   ` Leif Lindholm
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 5/8] Sophgo/SG2042Pkg: Add SEC module caiyuqing_hz
2023-09-15 10:57   ` Sunil V L
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 6/8] Sophgo/SG2042_EVB_Board: Add Sophgo SG2042 platform caiyuqing_hz
2023-09-15 11:03   ` Sunil V L
2023-09-07 10:25 ` caiyuqing_hz [this message]
2023-09-07 10:25 ` [edk2-devel] [PATCH v3 8/8] Sophgo/SG2042Pkg: Add platform readme and document caiyuqing_hz
2023-09-15 10:35 ` [edk2-devel] [PATCH v3 0/8] EDK2 on RISC-V Sophgo SG2042 platform Sunil V L

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58ccdbed518781c2f0fea1e86d47df4a2ab3f1c3.1694010673.git.202235273@mail.sdu.edu.cn \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox