From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by mx.groups.io with SMTP id smtpd.web11.25523.1626687066055593332 for ; Mon, 19 Jul 2021 02:31:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=aa5N/x3s; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.47, mailfrom: mw@semihalf.com) Received: by mail-lf1-f47.google.com with SMTP id s13so7625005lfi.12 for ; Mon, 19 Jul 2021 02:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZtqqBFlkAg75p/laIf7jXfMIGCQXRb4DehpY5WGfuXI=; b=aa5N/x3sdgEM1AXahpnh+V/3FTH1XaeAcujiPugA2RSjm/JPWTGYP2Gv5MOCeqXu0G aaS2ffWhOxAJt1DSlGXo+zDL/ia5Y2oZPMENBLrL/2COfKbzJhQU9g8hzHpRmu1MM54d s2EMO7exbXfVbg6DbXGk5c8diMZXgrJ1XPIhZvLmrGmTw4EWnTQSFcbadP0C/yHvDhGT 1o/m7UrNuSwexVihKIqcV5WTVEhTD8vuCqsxa5g9jdmjd/xkfuUO965Gx38Z+zwFXoyl aPxxmfoCjm1U9deptTgTHiKs54uqoclE/WFszJdVetbpSDBGbDvbdsAw0ENlA4ZC5BAP Up+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZtqqBFlkAg75p/laIf7jXfMIGCQXRb4DehpY5WGfuXI=; b=gKlMOoiQPRVdJqeqdaNc7+YJHjvp0/wWjkN60SJ3sytLWDMOALhp/yQCMwflj1OGBd 2vnhVh0xw/Xe4d2GhoshQJTSTxNLJEauRnvifq7EE9hKZ2E/T4A/W3qWbsapre1n+viZ qBFhLVFOKzPIVxbGW3OKzi38royeCkQMYILqaf9la5d0gJBGsWp7iHRVFPjGD9/0fJpz qVXm/s+tT9Vv7whvxN9Eb6nXXYUOOAG5t0UyCT1uhGrvbcb9eMFkX/ul+1MkXXSZrZp0 xfiJuqiDHvtA1/8b9C9JvGoZlz4jxK2obNE2noj7Uf+c05LZbaeHsVffLK+SerZervqJ m8ng== X-Gm-Message-State: AOAM530HFyYVPa+I1bOuYIyeZrZ7Y7jBerFzVAB9JJUixOkXeXOwvZ/0 rKrFwrWfi2nb1Xz8FDhk/RCG2+SjsFKde7SL X-Google-Smtp-Source: ABdhPJwEOhsG15fnwCCfZ/Uvu+N96OhksFRkJPL5IlA84h+GJRB7ozSI+MwEx3a3myEqmRdkPxncqg== X-Received: by 2002:a05:6512:3395:: with SMTP id h21mr17571475lfg.489.1626687064232; Mon, 19 Jul 2021 02:31:04 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id u14sm1252560lfr.86.2021.07.19.02.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 02:31:03 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, jaz@semihalf.com, gjb@semihalf.com, upstream@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, jon@solid-run.com, Marcin Wojtas Subject: [edk2-platforms PATCH 6/7] Marvell/Drivers: SmbiosPlatformDxe: Update Type0 information Date: Mon, 19 Jul 2021 11:30:14 +0200 Message-Id: <20210719093015.1490932-7-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210719093015.1490932-1-mw@semihalf.com> References: <20210719093015.1490932-1-mw@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This patch updates 2 fields of the SMBIOS Type0 table. The "Vendor" and the BiosVersion strings are set according to the values of the newly introduced PCD's. Note, that the gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString could not be used, as its format does match the required by SMBIOS tables (CHAR8 *). Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Marvell.dec | 2 ++ Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf | 2 ++ Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Silicon/Marvell/Marvell.dec b/Silicon/Marvell/Marvell.dec index cdf8154d40..482a90da25 100644 --- a/Silicon/Marvell/Marvell.dec +++ b/Silicon/Marvell/Marvell.dec @@ -170,6 +170,8 @@ gMarvellTokenSpaceGuid.PcdPciESdhci|{ 0x0 }|VOID*|0x3000035=0D =0D #Platform description=0D + gMarvellTokenSpaceGuid.PcdFirmwareVendor|"EFI Development Kit II / Semih= alf"|VOID*|0x50000104=0D + gMarvellTokenSpaceGuid.PcdFirmwareVersion|"EDK II"|VOID*|0x50000105=0D gMarvellTokenSpaceGuid.PcdProductManufacturer|"Marvell"|VOID*|0x50000100= =0D gMarvellTokenSpaceGuid.PcdProductPlatformName|"Marvell Development Board= "|VOID*|0x50000101=0D gMarvellTokenSpaceGuid.PcdProductSerial|"Serial Not Set"|VOID*|0x5000010= 3=0D diff --git a/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.in= f b/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf index 7722146292..582c0faf25 100644 --- a/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf +++ b/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf @@ -40,6 +40,8 @@ gMarvellTokenSpaceGuid.PcdProductPlatformName=0D gMarvellTokenSpaceGuid.PcdProductSerial=0D gMarvellTokenSpaceGuid.PcdProductVersion=0D + gMarvellTokenSpaceGuid.PcdFirmwareVendor=0D + gMarvellTokenSpaceGuid.PcdFirmwareVersion=0D =0D [Protocols]=0D gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_CONSUMED=0D diff --git a/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c = b/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c index a99291e902..ed67a39cb1 100644 --- a/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c +++ b/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c @@ -77,9 +77,9 @@ STATIC SMBIOS_TABLE_TYPE0 mArmadaDefaultType0 =3D { };=0D =0D STATIC CHAR8 CONST *mArmadaDefaultType0Strings[] =3D {=0D - "EFI Development Kit II / Marvell\0", /* Vendor */=0D - "EDK II\0", /* BiosVersion */=0D - __DATE__"\0", /* BiosReleaseDate */=0D + (CHAR8 CONST *)PcdGetPtr (PcdFirmwareVendor), /* Vendor */=0D + (CHAR8 CONST *)PcdGetPtr (PcdFirmwareVersion), /* BiosVersion */=0D + __DATE__"\0", /* BiosReleaseDate */=0D NULL=0D };=0D =0D --=20 2.29.0