diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2010-12-13 19:59:13 +0000 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2010-12-13 19:59:13 +0000 |
commit | c4369536da601a02b23cb936c16e54c0485ec21e (patch) | |
tree | 6e62d3fac5226b775c021c34f2b6283d4f428ad9 /src/northbridge/intel/i945 | |
parent | 59f410fa43e4176f2f4ded254ee4438f446b1c2d (diff) | |
download | coreboot-c4369536da601a02b23cb936c16e54c0485ec21e.tar.gz coreboot-c4369536da601a02b23cb936c16e54c0485ec21e.tar.bz2 coreboot-c4369536da601a02b23cb936c16e54c0485ec21e.zip |
Following patch adds support for suspend/resume functions. I had to change the get_cbmem_toc because macro magic did not work well.
The writes to NVRAM are not used in asrock board (k8 pre rev f) but they should work when used with am2 boards. In fact maybe the suspend will work on mahogany or others ;) - with some simple patch which follows for asrock.
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6173 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/intel/i945')
-rw-r--r-- | src/northbridge/intel/i945/raminit.c | 5 | ||||
-rw-r--r-- | src/northbridge/intel/i945/raminit.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index 7e2cf81d280a..8ae147081094 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -26,6 +26,11 @@ #include <arch/romcc_io.h> #include "raminit.h" #include "i945.h" +#include <cbmem.h> + +struct cbmem_entry *get_cbmem_toc(void) { + return (struct cbmem_entry *)(get_top_of_ram() - HIGH_MEMORY_SIZE); +} /* Debugging macros. */ #if CONFIG_DEBUG_RAM_SETUP diff --git a/src/northbridge/intel/i945/raminit.h b/src/northbridge/intel/i945/raminit.h index 197a6005faae..e3b8491fcd92 100644 --- a/src/northbridge/intel/i945/raminit.h +++ b/src/northbridge/intel/i945/raminit.h @@ -71,5 +71,4 @@ void sdram_initialize(int boot_path); unsigned long get_top_of_ram(void); int fixup_i945_errata(void); void udelay(u32 us); - #endif /* RAMINIT_H */ |