From: Chandni Cherukuri <chandni.cherukuri@arm.com>
To: edk2-devel@lists.01.org
Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org
Subject: [PATCH edk2-platforms v2 0/2] ARM Dynamic Configuration
Date: Fri, 15 Jun 2018 17:30:00 +0530 [thread overview]
Message-ID: <1529064002-18779-1-git-send-email-chandni.cherukuri@arm.com> (raw)
On SGI platforms, the trusted firmware executes prior to the SEC
phase. It supplies to the SEC phase, a pointer to a HW CONFIG fdt
in the x1 which contains platform specific information such as part
number and config number of the SGI platform.
The HW CONFIG FDT would look as,
/dts-v1/;
/ {
/* compatible string */
compatible = "arm,sgi-isys3";
/* platform ID node */
system-id {
platform-id = <0x03000783>;
}
};
In the very first step of the assembly code which executes in SEC phase
the fdt pointer is stored in a global variable from the register. A PPI
is created during the SEC phase which stores the global variable.
During PEI phase, a Platform ID PEIM is installed which accessess the PPI
and retrieves the platform information using FDT helper functions and a
PlatformId HOB is created and populated with the information.
During DXE phase the drivers can access the Platform ID HOB to get the
platform information and perform platform specific functions based on the
platform.
Chandni Cherukuri (2):
Platform/ARM/Sgi: Install a Platform ID HOB
Platform/ARM/Sgi: Pick ACPI tables to install based on platform ID
Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c | 33 +++++-
Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.inf | 2 +
Platform/ARM/SgiPkg/Include/Ppi/SgiPlatformId.h | 23 ++++
Platform/ARM/SgiPkg/Include/SgiPlatform.h | 13 +++
Platform/ARM/SgiPkg/Library/PlatformLib/AArch64/Helper.S | 13 ++-
Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c | 10 ++
Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.inf | 3 +
Platform/ARM/SgiPkg/Library/SgiPlatformPei/SgiPlatformPei.inf | 40 +++++++
Platform/ARM/SgiPkg/Library/SgiPlatformPei/SgiPlatformPeim.c | 112 ++++++++++++++++++++
Platform/ARM/SgiPkg/SgiPlatform.dec | 5 +
Platform/ARM/SgiPkg/SgiPlatform.dsc | 1 +
Platform/ARM/SgiPkg/SgiPlatform.fdf | 1 +
12 files changed, 247 insertions(+), 9 deletions(-)
create mode 100644 Platform/ARM/SgiPkg/Include/Ppi/SgiPlatformId.h
create mode 100644 Platform/ARM/SgiPkg/Library/SgiPlatformPei/SgiPlatformPei.inf
create mode 100644 Platform/ARM/SgiPkg/Library/SgiPlatformPei/SgiPlatformPeim.c
--
2.7.4
next reply other threads:[~2018-06-15 12:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 12:00 Chandni Cherukuri [this message]
2018-06-15 12:00 ` [PATCH edk2-platforms v2 1/2] Platform/ARM/Sgi: Install a Platform ID HOB Chandni Cherukuri
2018-06-15 13:02 ` Ard Biesheuvel
2018-06-15 12:00 ` [PATCH edk2-platforms v2 2/2] Platform/ARM/Sgi: Pick ACPI tables to install based on platform ID Chandni Cherukuri
2018-06-15 13:05 ` Ard Biesheuvel
2018-06-18 5:39 ` chandni cherukuri
2018-06-15 12:40 ` [PATCH edk2-platforms v2 0/2] ARM Dynamic Configuration Leif Lindholm
2018-06-18 5:43 ` chandni cherukuri
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=1529064002-18779-1-git-send-email-chandni.cherukuri@arm.com \
--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