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