]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.c
ArmPlatformPkg/ArmVExpressDxe: Load FDT into the EFI Configuration Table
[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
dff72027
OM
18//\r
19// Description of the four hardware platforms :\r
20// just the platform id for the time being.\r
21// Platform ids are defined in ArmVExpressInternal.h for\r
22// all "ArmVExpress-like" platforms (AARCH64 or ARM architecture,\r
23// model or hardware platforms).\r
24//\r
25CONST ARM_VEXPRESS_PLATFORM ArmVExpressPlatforms[] = {\r
04f1a709
RC
26 { ARM_HW_A9x4, { 0x2fd21cf6, 0xe6e8, 0x4ff2, { 0xa9, 0xca, 0x3b, 0x9f, 0x00, 0xe9, 0x28, 0x89 } }, L"vexpress-v2p-ca9.dtb" },\r
27 { ARM_HW_A15x2_A7x3, { 0xd5e606eb, 0x83df, 0x4e90, { 0x81, 0xe8, 0xc3, 0xdb, 0x2f, 0x77, 0x17, 0x9a } }, L"vexpress-v2p-ca15_a7.dtb" },\r
28 { ARM_HW_A15, { 0x6b8947c2, 0x4287, 0x4d91, { 0x8f, 0xe0, 0xa3, 0x81, 0xea, 0x5b, 0x56, 0x8f } }, L"vexpress-v2p-ca15-tc1.dtb" },\r
29 { ARM_HW_A5, { 0xa2cc7663, 0x4d7c, 0x448a, { 0xaa, 0xb5, 0x4c, 0x03, 0x4b, 0x6f, 0xda, 0xb7 } }, L"vexpress-v2p-ca5s.dtb" },\r
30 { ARM_FVP_VEXPRESS_UNKNOWN, { 0x0, 0x0, 0x0, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } } }\r
dff72027
OM
31};\r
32\r
33/**\r
34 Get information about the VExpress platform the firmware is running on.\r
35\r
36 @param[out] Platform Address where the pointer to the platform information\r
37 (type ARM_VEXPRESS_PLATFORM*) should be stored.\r
38 The returned pointer does not point to an allocated\r
39 memory area. Not used here.\r
40\r
41 @retval EFI_NOT_FOUND The platform was not recognised.\r
42\r
43**/\r
44EFI_STATUS\r
45ArmVExpressGetPlatform (\r
46 OUT CONST ARM_VEXPRESS_PLATFORM** Platform\r
47 )\r
48{\r
49 return EFI_NOT_FOUND;\r
50}\r
51\r
04f1a709
RC
52/**\r
53 * Generic UEFI Entrypoint for 'ArmHwDxe' driver\r
54 * See UEFI specification for the details of the parameters\r
55 */\r
a4ab7df4
OM
56EFI_STATUS\r
57EFIAPI\r
58ArmHwInitialise (\r
59 IN EFI_HANDLE ImageHandle,\r
60 IN EFI_SYSTEM_TABLE *SystemTable\r
61 )\r
62{\r
ced216f8
HL
63 EFI_STATUS Status;\r
64\r
65 // Install dynamic Shell command to run baremetal binaries.\r
66 Status = ShellDynCmdRunAxfInstall (ImageHandle);\r
67 if (EFI_ERROR (Status)) {\r
68 DEBUG ((EFI_D_ERROR, "ArmHwDxe: Failed to install ShellDynCmdRunAxf\n"));\r
69 }\r
70\r
71 return Status;\r
a4ab7df4 72}\r