summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/lx/pll_reset.c6
-rw-r--r--src/northbridge/amd/lx/raminit.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/src/northbridge/amd/lx/pll_reset.c b/src/northbridge/amd/lx/pll_reset.c
index 188a96e85c..576a2239ed 100644
--- a/src/northbridge/amd/lx/pll_reset.c
+++ b/src/northbridge/amd/lx/pll_reset.c
@@ -72,6 +72,7 @@ static void pll_reset(char manualconf)
return;
}
+#if 0 // Unused
static unsigned int CPUSpeed(void)
{
unsigned int speed;
@@ -84,6 +85,8 @@ static unsigned int CPUSpeed(void)
}
return (speed);
}
+#endif
+
static unsigned int GeodeLinkSpeed(void)
{
unsigned int speed;
@@ -96,6 +99,8 @@ static unsigned int GeodeLinkSpeed(void)
}
return (speed);
}
+
+#if 0 // Unused
static unsigned int PCISpeed(void)
{
msr_t msr;
@@ -107,3 +112,4 @@ static unsigned int PCISpeed(void)
return (33);
}
}
+#endif
diff --git a/src/northbridge/amd/lx/raminit.c b/src/northbridge/amd/lx/raminit.c
index 10717add08..68fd0bfdbe 100644
--- a/src/northbridge/amd/lx/raminit.c
+++ b/src/northbridge/amd/lx/raminit.c
@@ -514,6 +514,8 @@ static void set_extended_mode_registers(void)
wrmsr(MC_CF07_DATA, msr);
}
+#undef TLA_MEMORY_DEBUG
+#ifdef TLA_MEMORY_DEBUG
static void EnableMTest(void)
{
msr_t msr;
@@ -534,6 +536,7 @@ static void EnableMTest(void)
print_info("Enabled MTest for TLA debug\n");
}
+#endif
static void sdram_set_registers(const struct mem_controller *ctrl)
{
@@ -642,8 +645,10 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl)
;********************************************************************/
post_code(POST_MEM_ENABLE); // post_76h
+#ifdef TLA_MEMORY_DEBUG
/* Only enable MTest for TLA memory debug */
- /*EnableMTest(); */
+ EnableMTest();
+#endif
/* If both Page Size = "Not Installed" we have a problems and should halt. */
msr = rdmsr(MC_CF07_DATA);