]>
Commit | Line | Data |
---|---|---|
a89cb4b7 | 1 | /** @file\r |
2 | \r | |
68dda854 | 3 | Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>\r |
4 | \r | |
a89cb4b7 | 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 | |
15 | #include <PiDxe.h>\r | |
16 | #include <Library/NorFlashPlatformLib.h>\r | |
17 | #include <ArmPlatform.h>\r | |
18 | \r | |
19 | #define NOR_FLASH_DEVICE_COUNT 1\r | |
20 | \r | |
21 | // RTSM\r | |
22 | NOR_FLASH_DESCRIPTION mNorFlashDevices[NOR_FLASH_DEVICE_COUNT] = {\r | |
23 | { // UEFI\r | |
68dda854 | 24 | ARM_EB_SMB_NOR_BASE,\r |
a89cb4b7 | 25 | ARM_EB_SMB_NOR_BASE,\r |
26 | SIZE_128KB * 512,\r | |
27 | SIZE_128KB,\r | |
28 | {0xE7223039, 0x5836, 0x41E1, 0xB5, 0x42, 0xD7, 0xEC, 0x73, 0x6C, 0x5E, 0x59}\r | |
29 | }\r | |
30 | };\r | |
31 | \r | |
32 | EFI_STATUS\r | |
33 | NorFlashPlatformInitialization (\r | |
34 | VOID\r | |
35 | )\r | |
36 | {\r | |
37 | return EFI_SUCCESS;\r | |
38 | }\r | |
39 | \r | |
40 | EFI_STATUS\r | |
41 | NorFlashPlatformGetDevices (\r | |
42 | OUT NOR_FLASH_DESCRIPTION **NorFlashDevices,\r | |
43 | OUT UINT32 *Count\r | |
44 | )\r | |
45 | {\r | |
46 | if ((NorFlashDevices == NULL) || (Count == NULL)) {\r | |
47 | return EFI_INVALID_PARAMETER;\r | |
48 | }\r | |
49 | \r | |
50 | *NorFlashDevices = mNorFlashDevices;\r | |
51 | *Count = NOR_FLASH_DEVICE_COUNT;\r | |
52 | \r | |
53 | return EFI_SUCCESS;\r | |
54 | }\r |