a89cb4b7 |
1 | /** @file\r |
2 | \r |
3 | Copyright (c) 2011, ARM Ltd. All rights reserved.<BR>\r |
4 | This program and the accompanying materials\r |
5 | are licensed and made available under the terms and conditions of the BSD License\r |
6 | which accompanies this distribution. The full text of the license may be found at\r |
7 | http://opensource.org/licenses/bsd-license.php\r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
11 | \r |
12 | **/\r |
13 | \r |
14 | #include <PiDxe.h>\r |
15 | #include <Library/NorFlashPlatformLib.h>\r |
16 | #include <ArmPlatform.h>\r |
17 | \r |
18 | #define NOR_FLASH_DEVICE_COUNT 1\r |
19 | \r |
20 | // RTSM\r |
21 | NOR_FLASH_DESCRIPTION mNorFlashDevices[NOR_FLASH_DEVICE_COUNT] = {\r |
22 | { // UEFI\r |
23 | ARM_EB_SMB_NOR_BASE,\r |
24 | SIZE_128KB * 512,\r |
25 | SIZE_128KB,\r |
26 | {0xE7223039, 0x5836, 0x41E1, 0xB5, 0x42, 0xD7, 0xEC, 0x73, 0x6C, 0x5E, 0x59}\r |
27 | }\r |
28 | };\r |
29 | \r |
30 | EFI_STATUS\r |
31 | NorFlashPlatformInitialization (\r |
32 | VOID\r |
33 | )\r |
34 | {\r |
35 | return EFI_SUCCESS;\r |
36 | }\r |
37 | \r |
38 | EFI_STATUS\r |
39 | NorFlashPlatformGetDevices (\r |
40 | OUT NOR_FLASH_DESCRIPTION **NorFlashDevices,\r |
41 | OUT UINT32 *Count\r |
42 | )\r |
43 | {\r |
44 | if ((NorFlashDevices == NULL) || (Count == NULL)) {\r |
45 | return EFI_INVALID_PARAMETER;\r |
46 | }\r |
47 | \r |
48 | *NorFlashDevices = mNorFlashDevices;\r |
49 | *Count = NOR_FLASH_DEVICE_COUNT;\r |
50 | \r |
51 | return EFI_SUCCESS;\r |
52 | }\r |