diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-04-18 21:13:33 +0300 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-04-21 09:39:27 +0200 |
commit | 93b4ed91f6b1027c370da9bdd6d86664dcda671b (patch) | |
tree | 2179e83c8bd8e3c6c361331af75275aa4dc45e00 /src/northbridge/intel/e7505/raminit.c | |
parent | 97c064f0346874dcf02d4b2700a7e7c7913b24c9 (diff) | |
download | coreboot-93b4ed91f6b1027c370da9bdd6d86664dcda671b.tar.xz |
Intel e7505: build as separate object file
No longer include northbridge files directly in the source for
mainboard romstage.c and fix includes.
Also make required adjustments to function declarations.
Change-Id: Iafdcc0766ed44c64cc628e5935eef2c6372f5f22
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/906
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/northbridge/intel/e7505/raminit.c')
-rw-r--r-- | src/northbridge/intel/e7505/raminit.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/northbridge/intel/e7505/raminit.c b/src/northbridge/intel/e7505/raminit.c index 1d10a8cd73..fd4e2d051d 100644 --- a/src/northbridge/intel/e7505/raminit.c +++ b/src/northbridge/intel/e7505/raminit.c @@ -11,14 +11,25 @@ /* converted to C 6/2004 yhlu */ + +#include <stdint.h> +#include <device/pci_def.h> +#include <arch/io.h> +#include <arch/romcc_io.h> +#include <arch/cpu.h> +#include <stdlib.h> +#include <console/console.h> + #include <cpu/x86/mtrr.h> #include <cpu/x86/cache.h> #include <cpu/x86/msr.h> #include <assert.h> #include <spd.h> #include <sdram_mode.h> -#include <stdlib.h> + +#include "raminit.h" #include "e7505.h" +#include "debug.h" /*----------------------------------------------------------------------------- Definitions: @@ -1899,7 +1910,7 @@ void e7505_mch_done(const struct mem_controller *memctrl) DUMPNORTH(); } -static int bios_reset_detected(void) +int e7505_mch_is_ready(void) { uint32_t dword = pci_read_config32(MCHDEV, DRC); return !!(dword & DRC_DONE); |