From 186e9c4313fbbd55b7b5391a139235ee6121cb74 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 10 Jan 2017 14:26:23 +0100 Subject: nb/i945/raminit.c: Use Makefile.inc instead of '#include rcven.c' Change-Id: Ib86600b687c7002646ca82d5fa52121b6eafcd60 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/18087 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Paul Menzel --- src/northbridge/intel/i945/Makefile.inc | 1 + src/northbridge/intel/i945/raminit.c | 3 --- src/northbridge/intel/i945/rcven.c | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/northbridge/intel/i945/Makefile.inc b/src/northbridge/intel/i945/Makefile.inc index 6b176c2552..0e4fcfcb54 100644 --- a/src/northbridge/intel/i945/Makefile.inc +++ b/src/northbridge/intel/i945/Makefile.inc @@ -25,6 +25,7 @@ romstage-y += raminit.c romstage-y += early_init.c romstage-y += errata.c romstage-y += debug.c +romstage-y += rcven.c smm-y += udelay.c diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index f9ba37b17b..cc227cc50e 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include "raminit.h" @@ -2743,8 +2742,6 @@ static void sdram_recover_receive_enable(void) MCHBAR32(C1DRT1) = reg32; } -#include "rcven.c" - static void sdram_program_receive_enable(struct sys_info *sysinfo) { MCHBAR32(REPC) |= (1 << 0); diff --git a/src/northbridge/intel/i945/rcven.c b/src/northbridge/intel/i945/rcven.c index f4d9315ef3..a6aaefa1bf 100644 --- a/src/northbridge/intel/i945/rcven.c +++ b/src/northbridge/intel/i945/rcven.c @@ -13,7 +13,10 @@ * GNU General Public License for more details. */ +#include +#include #include "raminit.h" +#include "i945.h" /** * sample the strobes signal -- cgit v1.2.3