diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2013-06-04 14:08:46 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-04 17:53:57 +0200 |
commit | eb6322f4b073aa9c430c8c76d2387b9b76b25843 (patch) | |
tree | 7dc24378e1ae266abbff61164941853f5852a7ac /src/northbridge/amd/lx | |
parent | 29840e234cf6a58313d7d8bc1db1b2fcd5a33bb1 (diff) |
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>
Diffstat (limited to 'src/northbridge/amd/lx')
-rw-r--r-- | src/northbridge/amd/lx/raminit.c | 7 | ||||
-rw-r--r-- | src/northbridge/amd/lx/raminit.h | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/northbridge/amd/lx/raminit.c b/src/northbridge/amd/lx/raminit.c index 9a53e9eb15..3327771203 100644 --- a/src/northbridge/amd/lx/raminit.c +++ b/src/northbridge/amd/lx/raminit.c @@ -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; diff --git a/src/northbridge/amd/lx/raminit.h b/src/northbridge/amd/lx/raminit.h index 3d4d4c6d6e..c9bcfc23c7 100644 --- a/src/northbridge/amd/lx/raminit.h +++ b/src/northbridge/amd/lx/raminit.h @@ -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 |