aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lippert/frontrunner-af/BiosCallOuts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lippert/frontrunner-af/BiosCallOuts.h')
-rw-r--r--src/mainboard/lippert/frontrunner-af/BiosCallOuts.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/lippert/frontrunner-af/BiosCallOuts.h b/src/mainboard/lippert/frontrunner-af/BiosCallOuts.h
index c4f4f709d4..cd743f0ab9 100644
--- a/src/mainboard/lippert/frontrunner-af/BiosCallOuts.h
+++ b/src/mainboard/lippert/frontrunner-af/BiosCallOuts.h
@@ -22,6 +22,7 @@
#include "Porting.h"
#include "AGESA.h"
+#include "SB800.h"
#define BIOS_HEAP_START_ADDRESS 0x10000 /* HEAP during cold boot */
#define BIOS_HEAP_SIZE 0x20000
@@ -70,4 +71,12 @@ AGESA_STATUS BiosHookBeforeExitSelfRefresh (UINT32 Func, UINT32 Data, VOID *Conf
/* PCIE slot reset control */
AGESA_STATUS BiosGnbPcieSlotReset (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
+/* FCH GPIO access helpers */
+#define FCH_IOMUX(gpio_nr) (*(u8*)(ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))
+#define FCH_GPIO(gpio_nr) (*(volatile u8*)(ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))
+static inline u8 fch_gpio_state(unsigned int gpio_nr)
+{
+ return FCH_GPIO(gpio_nr) >> 7;
+}
+
#endif //_BIOS_CALLOUT_H_