]>
Commit | Line | Data |
---|---|---|
86d96aef AB |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR>\r | |
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 | |
15 | #include <ArmPlatform.h>\r | |
16 | #include <Library/NorFlashPlatformLib.h>\r | |
17 | \r | |
18 | EFI_STATUS\r | |
19 | NorFlashPlatformInitialization (\r | |
20 | VOID\r | |
21 | )\r | |
22 | {\r | |
23 | return EFI_SUCCESS;\r | |
24 | }\r | |
25 | \r | |
26 | NOR_FLASH_DESCRIPTION mNorFlashDevices[] = {\r | |
27 | {\r | |
28 | QEMU_NOR0_BASE,\r | |
29 | QEMU_NOR0_BASE,\r | |
30 | QEMU_NOR0_SIZE,\r | |
31 | QEMU_NOR_BLOCK_SIZE,\r | |
32 | {0xF9B94AE2, 0x8BA6, 0x409B, {0x9D, 0x56, 0xB9, 0xB4, 0x17, 0xF5, 0x3C, 0xB3}}\r | |
33 | }, {\r | |
34 | QEMU_NOR1_BASE,\r | |
35 | QEMU_NOR1_BASE,\r | |
36 | QEMU_NOR1_SIZE,\r | |
37 | QEMU_NOR_BLOCK_SIZE,\r | |
38 | {0x8047DB4B, 0x7E9C, 0x4C0C, {0x8E, 0xBC, 0xDF, 0xBB, 0xAA, 0xCA, 0xCE, 0x8F}}\r | |
39 | }\r | |
40 | };\r | |
41 | \r | |
42 | EFI_STATUS\r | |
43 | NorFlashPlatformGetDevices (\r | |
44 | OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions,\r | |
45 | OUT UINT32 *Count\r | |
46 | )\r | |
47 | {\r | |
48 | *NorFlashDescriptions = mNorFlashDevices;\r | |
62bea967 | 49 | *Count = ARRAY_SIZE (mNorFlashDevices);\r |
86d96aef AB |
50 | return EFI_SUCCESS;\r |
51 | }\r |