From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=RWIjn0IO; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.52, mailfrom: mw@semihalf.com) Received: by mail-lf1-f52.google.com with SMTP id x8so18141580lfe.3 for ; Sun, 01 Aug 2021 22:01: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=S+UVhQAGLZ2pnweNC+Maw1Tzclzv3kfEUwLdO5IA1LU=; b=RWIjn0IOF0fRVCct4A217FZjDZfFVPYU5MAjWjnnXhUCxhcML2X5gZ4y3KW5Npy0up SAMuA70CzgMDCT/ls8xVZiy453UQC6qPQ5moS5YK46HpkaIH30Roq85d9To9Wc7RFAk8 7ylZjjYw2Lq8UibW+HOI2AXXYw0p+NTPRbom/eQfnRGjtYF/ggoHQZhVPrIC8RyV7jNc PQUe+fE1JkO92KpWWLLngYBwHmItqmnlip/5/fHB75E8BGc0mBzuS+avZmTzks1VJt5t VnvJfLYx2JyfmdxrxdUnDnlmpEhcO/tAM+I/VJOaarm+EREdBMMNPVyFUQk1Npd8JP/f ooxg== 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=S+UVhQAGLZ2pnweNC+Maw1Tzclzv3kfEUwLdO5IA1LU=; b=uF4taRlYlbMzsNLzgcb7zo9MtuTbooZUxYEUEnJoO46etqylmTQZecSbDi+o7UYRhP Y95acuesjrToqheoyw6BQoAbHuKk+sPsj3AB35PfbvZHsfSV7KmT9zPErfZw6Mb0n7+h TcmteAihrVW6KyhbWLW0rxbgXLXA/ykUhZBPMqLbkZJ3ByXq3ygCmVqXEzNR/HtNREan Kwl1aAPQVBDtftcKHIcTknpYN1gVzrwZ6OtsJmJamVVPqoLDvLxOARtPqlbBE0diKrx4 FIT49vDEu+66ItDwMOWQ4cYIza9E+AODXrgTbIv0DSIJZFU4iu4T75XOzn1ZWIFGjnnk TPRw== X-Gm-Message-State: AOAM5335UzbYbIOoqJ2b3GNzZP02yk+GyOeu/pCp6LrIvMPlWgOKwLLM NCp6alKsi/u3jtJQRKgs1bKajAoJf7KvAOQL 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) Return-Path: 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-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> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210802050051.2831716-1-mw@semihalf.com> References: <20210802050051.2831716-1-mw@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=0D =0D [LibraryClasses]=0D + ArmadaBoardDescLib=0D ArmadaIcuLib=0D ArmSmcLib=0D ComPhyLib=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +ArmadaBoardInit (=0D + VOID=0D + );=0D +=0D //=0D // COMPHY controllers per-board description=0D //=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +ArmadaBoardInit (=0D + VOID=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D +=0D //=0D // GPIO Expander=0D //=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +ArmadaBoardInit (=0D + VOID=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D +=0D //=0D // GPIO Expanders=0D //=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +ArmadaBoardInit (=0D + VOID=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D +=0D //=0D // GPIO Expander=0D //=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +ArmadaBoardInit (=0D + VOID=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D +=0D //=0D // GPIO Expander=0D //=0D 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 =0D #include =0D =0D +//=0D +// General purpose routine for per-board initalization=0D +//=0D +EFI_STATUS=0D +ArmadaBoardInit (=0D + VOID=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D +=0D //=0D // GPIO Expander=0D //=0D 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 ();=0D MppInitialize ();=0D ArmadaIcuInitialize ();=0D + Status =3D ArmadaBoardInit ();=0D + ASSERT_EFI_ERROR (Status);=0D =0D /*=0D * Enable EL3 PMU interrupt handler and=0D --=20 2.29.0