diff options
author | Maurice Ma <maurice.ma@intel.com> | 2016-10-27 09:12:26 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-10-27 09:12:26 -0700 |
commit | 1399565a93a7457db262ae2cb81431062fcc30c4 (patch) | |
tree | 870527d89e4cf5555d5fe5b384e2593d8fbd1553 /CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | |
parent | 7bd394623aa89d0f2fc871fd69d8a8762738de14 (diff) | |
download | edk2-1399565a93a7457db262ae2cb81431062fcc30c4.zip edk2-1399565a93a7457db262ae2cb81431062fcc30c4.tar.gz edk2-1399565a93a7457db262ae2cb81431062fcc30c4.tar.bz2 |
CorebootPayloadPkg: Add an option to use HPET timer driver
The current CorebootPayloadPkg will use the legacy 8254 timer
driver as the default. However, on some platforms legacy timer
might not exist anymore. This patch adds HPET timer driver as
a build option.
Cc: Prince Agyeman <prince.agyeman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by : Prince Agyeman <prince.agyeman@intel.com>
Diffstat (limited to 'CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc')
-rw-r--r-- | CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc b/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc index cc29af5..ad1a6dc 100644 --- a/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc +++ b/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc @@ -78,6 +78,11 @@ DEFINE PCI_SERIAL_PARAMETERS = {0xff,0xff, 0x00,0x00, 0x0,0x20,0x1c,0x00, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x00, 0x01, 0x0,0x0, 0x0,0x0, 0x0,0x0, 0xff,0xff}
#
+ # Chipset options
+ #
+ DEFINE USE_HPET_TIMER = FALSE
+
+ #
# Shell options: [BUILD_SHELL, FULL_BIN, MIN_BIN, NONE, UEFI]
#
DEFINE SHELL_TYPE = FULL_BIN
@@ -174,6 +179,7 @@ SerialPortLib|CorebootModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
PlatformHookLib|CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
PlatformBootManagerLib|CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
+ IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
CbPlatformSupportLib|CorebootModulePkg/Library/CbPlatformSupportLibNull/CbPlatformSupportLibNull.inf
#
@@ -392,7 +398,11 @@ NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
}
+!if $(USE_HPET_TIMER) == TRUE
+ PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
+!else
PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
+!endif
MdeModulePkg/Universal/Metronome/Metronome.inf
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|