summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/intel/i440lx/Kconfig1
-rw-r--r--src/northbridge/intel/i440lx/raminit.c8
-rw-r--r--src/northbridge/via/vt8601/Kconfig1
-rw-r--r--src/northbridge/via/vt8601/raminit.c2
4 files changed, 7 insertions, 5 deletions
diff --git a/src/northbridge/intel/i440lx/Kconfig b/src/northbridge/intel/i440lx/Kconfig
index cff3aac2d2..e7119c5817 100644
--- a/src/northbridge/intel/i440lx/Kconfig
+++ b/src/northbridge/intel/i440lx/Kconfig
@@ -19,4 +19,5 @@
config NORTHBRIDGE_INTEL_I440LX
bool
+ select HAVE_DEBUG_RAM_SETUP
diff --git a/src/northbridge/intel/i440lx/raminit.c b/src/northbridge/intel/i440lx/raminit.c
index d8cebb2808..dcb22732f2 100644
--- a/src/northbridge/intel/i440lx/raminit.c
+++ b/src/northbridge/intel/i440lx/raminit.c
@@ -31,7 +31,7 @@ Macros and definitions.
/* Uncomment this to enable debugging output. */
/* Debugging macros. */
-#if defined(DEBUG_RAM_SETUP)
+#if CONFIG_DEBUG_RAM_SETUP
#define PRINT_DEBUG(x) print_debug(x)
#define PRINT_DEBUG_HEX8(x) print_debug_hex8(x)
#define PRINT_DEBUG_HEX16(x) print_debug_hex16(x)
@@ -215,7 +215,7 @@ static void northbridge_init(void)
reg32 &= 0xe8000000U;
pci_write_config32(NB, APBASE, reg32);
- #ifdef DEBUG_RAM_SETUP
+#if CONFIG_DEBUG_RAM_SETUP
/*
* apbase dont get set still, no idea what i have doing wrong yet,
* i am almost sure that somehow i set it by mistake once, but can't
@@ -225,7 +225,7 @@ static void northbridge_init(void)
PRINT_DEBUG("APBASE ");
PRINT_DEBUG_HEX32(reg32);
PRINT_DEBUG("\n");
- #endif
+#endif
}
@@ -265,7 +265,7 @@ static void sdram_set_registers(void)
* i am not sure if that is needed, but was usefull
* for me to confirm what got written
*/
-#ifdef DEBUG_RAM_SETUP
+#if CONFIG_DEBUG_RAM_SETUP
PRINT_DEBUG(" Set register 0x");
PRINT_DEBUG_HEX8(register_values[i]);
PRINT_DEBUG(" to 0x");
diff --git a/src/northbridge/via/vt8601/Kconfig b/src/northbridge/via/vt8601/Kconfig
index cb64dbcb31..1b202679ab 100644
--- a/src/northbridge/via/vt8601/Kconfig
+++ b/src/northbridge/via/vt8601/Kconfig
@@ -1,3 +1,4 @@
config NORTHBRIDGE_VIA_VT8601
bool
+ select HAVE_DEBUG_RAM_SETUP
diff --git a/src/northbridge/via/vt8601/raminit.c b/src/northbridge/via/vt8601/raminit.c
index 2365b8d8fb..f1ebbe5338 100644
--- a/src/northbridge/via/vt8601/raminit.c
+++ b/src/northbridge/via/vt8601/raminit.c
@@ -69,7 +69,7 @@ static void dimms_write(int x)
}
}
-#ifdef CONFIG_DEBUG_RAM_SETUP
+#if CONFIG_DEBUG_RAM_SETUP
static void dumpnorth(device_t north)
{
unsigned int r, c;