diff options
Diffstat (limited to 'src/southbridge/via/k8t890')
-rw-r--r-- | src/southbridge/via/k8t890/k8t890.h | 7 | ||||
-rw-r--r-- | src/southbridge/via/k8t890/k8t890_early_car.c | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/southbridge/via/k8t890/k8t890.h b/src/southbridge/via/k8t890/k8t890.h index 139daf91c2..ce60d904cc 100644 --- a/src/southbridge/via/k8t890/k8t890.h +++ b/src/southbridge/via/k8t890/k8t890.h @@ -38,14 +38,17 @@ /* the FB size in MB (min is 8MB max is 512MB) */ #define K8M890_FBSIZEMB 64 +#ifdef __PRE_RAM__ +u8 k8t890_early_setup_ht(void); +#else #include <device/device.h> - #if 0 extern void writeback(struct device *dev, u16 where, u8 what); extern void dump_south(device_t dev); #endif -#include <southbridge/via/vt8237r/vt8237r.h> +#endif +#include <southbridge/via/vt8237r/vt8237r.h> int k8m890_host_fb_size_get(void); //void k8m890_host_fb_direct_set(uint32_t fb_address); diff --git a/src/southbridge/via/k8t890/k8t890_early_car.c b/src/southbridge/via/k8t890/k8t890_early_car.c index 7c6a0ba16d..0505a6ff5a 100644 --- a/src/southbridge/via/k8t890/k8t890_early_car.c +++ b/src/southbridge/via/k8t890/k8t890_early_car.c @@ -23,12 +23,12 @@ */ #include <stdlib.h> -//include "k8t890.h" -#warning hack the right header here +#include "k8t890.h" /* The 256 bytes of NVRAM for S3 storage, 256B aligned */ #define K8T890_NVRAM_IO_BASE 0xf00 #define K8T890_MULTIPLE_FN_EN 0x4f + /* we provide S3 NVRAM to system */ #define S3_NVRAM_EARLY 1 @@ -113,7 +113,7 @@ u8 k8t890_early_setup_ht(void) return 1; } -int s3_save_nvram_early(u32 dword, int size, int nvram_pos) +static int s3_save_nvram_early(u32 dword, int size, int nvram_pos) { printk(BIOS_DEBUG, "Writing %x of size %d to nvram pos: %d\n", dword, size, nvram_pos); @@ -134,7 +134,7 @@ int s3_save_nvram_early(u32 dword, int size, int nvram_pos) return nvram_pos; } -int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos) +static int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos) { switch (size) { case 1: |