From nobody Tue Feb 10 00:23:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78488+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78488+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1627880466; cv=none; d=zohomail.com; s=zohoarc; b=C3wJHiSd8Fy+PIpPVnUWhaueqFcP8FEptQMpaWOHTTlkW82PlzFA+gP/usOiQudq6uq1X4CRdnnbAT6JMbBtV12LYZBo2bWTWRmcR3eiy0Az9kENF87GnbqSVbJnZ+MPOvbyFFJxnht0tI9UuNQCN+yjkzyZXhqMgii8S6+WM98= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627880466; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=apk4+tz5o0eF+cbHlk0Zg8EzPoN2E/ycKjpwV/quztY=; b=dCxWXPpyaRZL4tjPbGfYLym7ZS6xQ4VFO413xOxfqNjBt4RH7/qAjAqrIxuwGAJo69mQ9OLko9Lg8CnGlSrxEgg/HYQf04rLFOYPJoFY67Q6Fz3rUnrlDvabhmY7I9uAUhEK+O3enZTbny1coitffz+dumOgxCnzwGZgHyMzHqE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78488+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627880466387428.85809000114386; Sun, 1 Aug 2021 22:01:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id dpPuYY1788612xMw4CptUqXx; Sun, 01 Aug 2021 22:01:06 -0700 X-Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mx.groups.io with SMTP id smtpd.web09.15979.1627880465404505256 for ; Sun, 01 Aug 2021 22:01:05 -0700 X-Received: by mail-lf1-f52.google.com with SMTP id x8so18141580lfe.3 for ; Sun, 01 Aug 2021 22:01:05 -0700 (PDT) X-Gm-Message-State: RzAsjVs2fIyqVzIlN6HElby9x1787277AA= X-Google-Smtp-Source: ABdhPJwjxPLpb28SmD1vO4nggncIHuz/FShklX4o/KpapN+k9wpKslW9MEX7/DCKqjUWT7ythZVh4Q== X-Received: by 2002:ac2:4c1a:: with SMTP id t26mr4601143lfq.328.1627880463657; Sun, 01 Aug 2021 22:01:03 -0700 (PDT) X-Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id g17sm359163lfv.210.2021.08.01.22.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 22:01: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-devel] [edk2-platforms PATCH 5/6] Marvell: Armada7k8k/OcteonTX: Enable additional board configuration Date: Mon, 2 Aug 2021 07:00:50 +0200 Message-Id: <20210802050051.2831716-6-mw@semihalf.com> In-Reply-To: <20210802050051.2831716-1-mw@semihalf.com> References: <20210802050051.2831716-1-mw@semihalf.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,mw@semihalf.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627880466; bh=yV7dC+PV+JwPz2A96BbiIndXdjovveGoBFrrfLDEPeA=; h=Cc:Date:From:Reply-To:Subject:To; b=aVYLoy7Pp3jRjKFn6+36+ivwdGhdo4iI5vtRGAB6lHtI+uQfbgbC3V9AE7hhJmhRNqH Ivvd5KR2XL82Pq3C4av9lWxy3y5PhH1T2eqeP8f7xmgHpTfW0j0jZZASR/klk3EcFy2rm SLlkPvfq4p5+RDkjR75DGZMTCNpxotsQSJs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627880467653100021 Content-Type: text/plain; charset="utf-8" Introduce new board description library extension that allows to execute custom initialization sequence. Add stubs for all existing platforms. Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf = | 1 + Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h = | 9 +++++++++ Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDe= scLib.c | 11 +++++++++++ Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDe= scLib.c | 11 +++++++++++ Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c = | 11 +++++++++++ Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c = | 11 +++++++++++ Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0Mc= BinBoardDescLib.c | 11 +++++++++++ Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c = | 2 ++ 8 files changed, 67 insertions(+) diff --git a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf= b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf index b63e9b6325..398baebcf5 100644 --- a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf +++ b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf @@ -26,6 +26,7 @@ Silicon/Marvell/Marvell.dec =20 [LibraryClasses] + ArmadaBoardDescLib ArmadaIcuLib ArmSmcLib ComPhyLib diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h b/Silicon= /Marvell/Include/Library/ArmadaBoardDescLib.h index 80c55eb3a7..6dc296371d 100644 --- a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h +++ b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h @@ -11,6 +11,15 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +EFIAPI +ArmadaBoardInit ( + VOID + ); + // // COMPHY controllers per-board description // diff --git a/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada7= 0x0DbBoardDescLib.c b/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLi= b/Armada70x0DbBoardDescLib.c index b0b6855bbb..33e40d0bd9 100644 --- a/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBo= ardDescLib.c +++ b/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBo= ardDescLib.c @@ -16,6 +16,17 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +ArmadaBoardInit ( + VOID + ) +{ + return EFI_SUCCESS; +} + // // GPIO Expander // diff --git a/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada8= 0x0DbBoardDescLib.c b/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLi= b/Armada80x0DbBoardDescLib.c index 2b119fa2a7..e4ee2e04ae 100644 --- a/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBo= ardDescLib.c +++ b/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBo= ardDescLib.c @@ -16,6 +16,17 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +ArmadaBoardInit ( + VOID + ) +{ + return EFI_SUCCESS; +} + // // GPIO Expanders // diff --git a/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDe= scLib.c b/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescL= ib.c index 2755600f53..d53c7086a1 100644 --- a/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c +++ b/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c @@ -16,6 +16,17 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +ArmadaBoardInit ( + VOID + ) +{ + return EFI_SUCCESS; +} + // // GPIO Expander // diff --git a/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDe= scLib.c b/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescL= ib.c index d2846dde30..920c7436c2 100644 --- a/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c +++ b/Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c @@ -16,6 +16,17 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +ArmadaBoardInit ( + VOID + ) +{ + return EFI_SUCCESS; +} + // // GPIO Expander // diff --git a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/= Armada80x0McBinBoardDescLib.c b/Platform/SolidRun/Armada80x0McBin/Armada80x= 0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c index ebe7386df1..b11195c5a1 100644 --- a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada8= 0x0McBinBoardDescLib.c +++ b/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada8= 0x0McBinBoardDescLib.c @@ -15,6 +15,17 @@ #include #include =20 +// +// General purpose routine for per-board initalization +// +EFI_STATUS +ArmadaBoardInit ( + VOID + ) +{ + return EFI_SUCCESS; +} + // // GPIO Expander // diff --git a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c b= /Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c index 927abb9400..78ad1c8a7a 100644 --- a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c +++ b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c @@ -110,6 +110,8 @@ ArmadaPlatInitDxeEntryPoint ( UtmiPhyInit (); MppInitialize (); ArmadaIcuInitialize (); + Status =3D ArmadaBoardInit (); + ASSERT_EFI_ERROR (Status); =20 /* * Enable EL3 PMU interrupt handler and --=20 2.29.0 -=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 (#78488): https://edk2.groups.io/g/devel/message/78488 Mute This Topic: https://groups.io/mt/84605053/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-