From d72cc4111b81497356b0cb5d4c305ae9e460a9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 15 Jun 2016 06:15:46 +0300 Subject: intel/model_206ax: Move platform specific defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3c517fc55dd333b1a457324f1d69aeb6f70acec2 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/15197 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin Tested-by: Raptor Engineering Automated Test Stand --- src/cpu/intel/model_206ax/cache_as_ram.inc | 2 +- src/include/cbmem.h | 13 ++----------- src/northbridge/intel/sandybridge/sandybridge.h | 6 ++++++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/cpu/intel/model_206ax/cache_as_ram.inc b/src/cpu/intel/model_206ax/cache_as_ram.inc index 358ba75e04..56feab994e 100644 --- a/src/cpu/intel/model_206ax/cache_as_ram.inc +++ b/src/cpu/intel/model_206ax/cache_as_ram.inc @@ -17,8 +17,8 @@ #include #include #include -#include #include +#include "northbridge/intel/sandybridge/sandybridge.h" #define CACHE_AS_RAM_SIZE CONFIG_DCACHE_RAM_SIZE #define CACHE_AS_RAM_BASE CONFIG_DCACHE_RAM_BASE diff --git a/src/include/cbmem.h b/src/include/cbmem.h index 2182ce7a46..5b75db0342 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -19,18 +19,12 @@ #include #include -/* Delegation of resume backup memory so we don't have to - * (slowly) handle backing up OS memory in romstage.c - */ -#define CBMEM_BOOT_MODE 0x610 -#define CBMEM_RESUME_BACKUP 0x614 -#define CBMEM_FSP_HOB_PTR 0x614 - -#ifndef __ASSEMBLER__ #include #include #include +#define CBMEM_FSP_HOB_PTR 0x614 + struct cbmem_entry; /* @@ -151,7 +145,4 @@ void set_top_of_ram(uint64_t ramtop); void backup_top_of_ram(uint64_t ramtop); #endif -#endif /* __ASSEMBLER__ */ - - #endif /* _CBMEM_H_ */ diff --git a/src/northbridge/intel/sandybridge/sandybridge.h b/src/northbridge/intel/sandybridge/sandybridge.h index af5bd485e8..7b0efd1176 100644 --- a/src/northbridge/intel/sandybridge/sandybridge.h +++ b/src/northbridge/intel/sandybridge/sandybridge.h @@ -196,6 +196,12 @@ #define DMIDRCCFG 0xeb4 /* 32bit */ +/* Delegation of resume backup memory so we don't have to + * (slowly) handle backing up OS memory in romstage.c + */ +#define CBMEM_BOOT_MODE 0x610 +#define CBMEM_RESUME_BACKUP 0x614 + #ifndef __ASSEMBLER__ static inline void barrier(void) { asm("" ::: "memory"); } -- cgit v1.2.3