Remove various .c #includes from Intel 440BX/82371EB boards.
- Use 'romstage-y' to turn i82371eb_early_pm.c and i82371eb_early_smbus.c into distinct compilation units, and don't #include the files anymore in romstage.c files. - Ditto for lib/debug.c, northbridge/intel/i440bx/raminit.c, and northbridge/intel/i440bx/debug.c. - Add various header files which are now needed. - Make functions that need to be visible non-static. - Drop a remaining "select ROMCC" from a 4440BX board. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Idwer Vollering <vidwer@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5929 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
|
||||
#include <spd.h>
|
||||
#include <delay.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <arch/io.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <console/console.h>
|
||||
#include "i440bx.h"
|
||||
#include "raminit.h"
|
||||
|
||||
@@ -630,7 +635,7 @@ static void spd_enable_refresh(void)
|
||||
Public interface.
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
static void sdram_set_registers(void)
|
||||
void sdram_set_registers(void)
|
||||
{
|
||||
int i, max;
|
||||
uint8_t reg;
|
||||
@@ -956,7 +961,7 @@ static void set_dram_row_attributes(void)
|
||||
PRINT_DEBUG("\n");
|
||||
}
|
||||
|
||||
static void sdram_set_spd_registers(void)
|
||||
void sdram_set_spd_registers(void)
|
||||
{
|
||||
/* Setup DRAM row boundary registers and other attributes. */
|
||||
set_dram_row_attributes();
|
||||
@@ -972,7 +977,7 @@ static void sdram_set_spd_registers(void)
|
||||
pci_write_config8(NB, DRAMT, 0x03);
|
||||
}
|
||||
|
||||
static void sdram_enable(void)
|
||||
void sdram_enable(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
Reference in New Issue
Block a user