AMD Northbridge LX: make sdram_* function prototypes non-static

In order to get rid of the bad #include "northbridge/amd/lx/raminit.c"
line we need to do some prepartion steps. This commit is one of them.

Change-Id: I33173660bbda8894e7672e41e1b994d254d7ae8a
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-on: http://review.coreboot.org/3362
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Christian Gmeiner 2013-06-04 14:08:46 +02:00 committed by Ronald G. Minnich
parent 29840e234c
commit eb6322f4b0
2 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include <arch/io.h>
#include <spd.h>
#include "southbridge/amd/cs5536/cs5536.h"
#include "raminit.h"
static const unsigned char NumColAddr[] = {
0x00, 0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x07,
@ -513,7 +514,7 @@ static void EnableMTest(void)
}
#endif
static void sdram_set_registers(const struct mem_controller *ctrl)
void sdram_set_registers(const struct mem_controller *ctrl)
{
msr_t msr;
uint32_t msrnum;
@ -543,7 +544,7 @@ static void sdram_set_registers(const struct mem_controller *ctrl)
wrmsr(msrnum, msr); */
}
static void sdram_set_spd_registers(const struct mem_controller *ctrl)
void sdram_set_spd_registers(const struct mem_controller *ctrl)
{
uint8_t spd_byte;
@ -601,7 +602,7 @@ static void sdram_set_spd_registers(const struct mem_controller *ctrl)
/* Section 6.1.3, LX processor databooks, BIOS Initialization Sequence
* Section 4.1.4, GX/CS5535 GeodeROM Porting guide */
static void sdram_enable(int controllers, const struct mem_controller *ctrl)
void sdram_enable(int controllers, const struct mem_controller *ctrl)
{
uint32_t i, msrnum;
msr_t msr;

View File

@ -27,6 +27,10 @@ struct mem_controller {
uint16_t channel0[DIMM_SOCKETS];
};
void sdram_set_registers(const struct mem_controller *ctrl);
void sdram_set_spd_registers(const struct mem_controller *ctrl);
void sdram_enable(int controllers, const struct mem_controller *ctrl);
void sdram_initialize(int controllers, const struct mem_controller *ctrl);
#endif