]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.c
ArmPlatformPkg/ArmVExpressDxe: Renamed the device tree
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpressDxe / ArmHwDxe.c
CommitLineData
a4ab7df4
OM
1/** @file\r
2\r
04f1a709 3 Copyright (c) 2013-2015, ARM Ltd. All rights reserved.<BR>\r
a4ab7df4
OM
4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
dff72027 15#include "ArmVExpressInternal.h"\r
ced216f8 16#include <Library/ArmShellCmdLib.h>\r
a4ab7df4 17\r
c8ed5787
OM
18CONST EFI_GUID ArmHwA9x4Guid = { 0x2fd21cf6, 0xe6e8, 0x4ff2, { 0xa9, 0xca, 0x3b, 0x9f, 0x00, 0xe9, 0x28, 0x89 } };\r
19CONST EFI_GUID ArmHwA15x2A7x3Guid = { 0xd5e606eb, 0x83df, 0x4e90, { 0x81, 0xe8, 0xc3, 0xdb, 0x2f, 0x77, 0x17, 0x9a } };\r
20CONST EFI_GUID ArmHwA15Guid = { 0x6b8947c2, 0x4287, 0x4d91, { 0x8f, 0xe0, 0xa3, 0x81, 0xea, 0x5b, 0x56, 0x8f } };\r
21CONST EFI_GUID ArmHwA5Guid = { 0xa2cc7663, 0x4d7c, 0x448a, { 0xaa, 0xb5, 0x4c, 0x03, 0x4b, 0x6f, 0xda, 0xb7 } };\r
22CONST EFI_GUID NullGuid = { 0x0, 0x0, 0x0, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } };\r
23\r
dff72027
OM
24//\r
25// Description of the four hardware platforms :\r
26// just the platform id for the time being.\r
27// Platform ids are defined in ArmVExpressInternal.h for\r
28// all "ArmVExpress-like" platforms (AARCH64 or ARM architecture,\r
29// model or hardware platforms).\r
30//\r
2f33f892 31//Note: File extensions are stripped with the VExpress NOR Flash FileSystem\r
dff72027 32CONST ARM_VEXPRESS_PLATFORM ArmVExpressPlatforms[] = {\r
2f33f892
OM
33 { ARM_HW_A9x4, &ArmHwA9x4Guid, L"ca9" },\r
34 { ARM_HW_A15x2_A7x3, &ArmHwA15x2A7x3Guid, L"ca15a7" },\r
35 { ARM_HW_A15, &ArmHwA15Guid, L"ca15a7" },\r
36 { ARM_HW_A5, &ArmHwA5Guid, L"ca5s" },\r
c8ed5787 37 { ARM_FVP_VEXPRESS_UNKNOWN, &NullGuid, NULL }\r
dff72027
OM
38};\r
39\r
40/**\r
41 Get information about the VExpress platform the firmware is running on.\r
42\r
43 @param[out] Platform Address where the pointer to the platform information\r
44 (type ARM_VEXPRESS_PLATFORM*) should be stored.\r
45 The returned pointer does not point to an allocated\r
46 memory area. Not used here.\r
47\r
48 @retval EFI_NOT_FOUND The platform was not recognised.\r
49\r
50**/\r
51EFI_STATUS\r
52ArmVExpressGetPlatform (\r
53 OUT CONST ARM_VEXPRESS_PLATFORM** Platform\r
54 )\r
55{\r
56 return EFI_NOT_FOUND;\r
57}\r
58\r
04f1a709
RC
59/**\r
60 * Generic UEFI Entrypoint for 'ArmHwDxe' driver\r
61 * See UEFI specification for the details of the parameters\r
62 */\r
a4ab7df4
OM
63EFI_STATUS\r
64EFIAPI\r
65ArmHwInitialise (\r
66 IN EFI_HANDLE ImageHandle,\r
67 IN EFI_SYSTEM_TABLE *SystemTable\r
68 )\r
69{\r
ced216f8
HL
70 EFI_STATUS Status;\r
71\r
72 // Install dynamic Shell command to run baremetal binaries.\r
73 Status = ShellDynCmdRunAxfInstall (ImageHandle);\r
74 if (EFI_ERROR (Status)) {\r
75 DEBUG ((EFI_D_ERROR, "ArmHwDxe: Failed to install ShellDynCmdRunAxf\n"));\r
76 }\r
77\r
78 return Status;\r
a4ab7df4 79}\r