From f6d14773b24ef918bdafb1108ccbd87aa742fada Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 26 Jan 2018 11:50:04 +0100 Subject: nb/intel/i945: Add a common function to compute TSEG size This adds a common function to decode the TSEG size from the ESMRAM register. This will come in handy when SMM in TSEG is implemented. This function is used both in romstage and in ramstage. Change-Id: I4e163598752fb6cd036aec229fce439ebad74def Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/23448 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/northbridge/intel/i945/i945.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/northbridge/intel/i945/i945.h') diff --git a/src/northbridge/intel/i945/i945.h b/src/northbridge/intel/i945/i945.h index 5929a1d01c..cc5f08791f 100644 --- a/src/northbridge/intel/i945/i945.h +++ b/src/northbridge/intel/i945/i945.h @@ -365,6 +365,7 @@ void dump_spd_registers(void); void dump_mem(unsigned int start, unsigned int end); u32 decode_igd_memory_size(u32 gms); +u32 decode_tseg_size(const u8 esmramc); #endif /* __ACPI__ */ -- cgit v1.2.3