diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-15 13:59:08 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-16 16:22:55 +0000 |
commit | f311e5d8b5e1928eec602334194187d7811d905a (patch) | |
tree | d5a585634851d215c4c288b8bf0de4c061a1a472 /ArmVirtPkg/Library/NorFlashQemuLib | |
parent | 0d36a219c7bdbb27d775b50837823b2a9928147c (diff) | |
download | edk2-f311e5d8b5e1928eec602334194187d7811d905a.tar.gz edk2-f311e5d8b5e1928eec602334194187d7811d905a.tar.bz2 edk2-f311e5d8b5e1928eec602334194187d7811d905a.zip |
ArmVirtPkg: remove ArmPlatformSysConfigLib dependency
Now that the PL031 RTC driver library no longer depends on the ARM
platform specific ArmPlatformSysConfigLib, we no longer need to
implement ArmPlatform.h or have a resolution for that library.
This allows us to get rid of a rather dodgy practice of including
platform headers using compiler flags, which is a bad idea at various
levels.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'ArmVirtPkg/Library/NorFlashQemuLib')
-rw-r--r-- | ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c index d63a2d989f..e3bbae5b06 100644 --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c @@ -12,9 +12,14 @@ **/
-#include <ArmPlatform.h>
#include <Library/NorFlashPlatformLib.h>
+#define QEMU_NOR_BLOCK_SIZE SIZE_256KB
+#define QEMU_NOR0_BASE 0x0
+#define QEMU_NOR0_SIZE SIZE_64MB
+#define QEMU_NOR1_BASE 0x04000000
+#define QEMU_NOR1_SIZE SIZE_64MB
+
EFI_STATUS
NorFlashPlatformInitialization (
VOID
|