diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-12-16 21:04:46 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-17 10:41:57 +0000 |
commit | a4e8f67b94f4167cb7f31b9bcb3b811cd38f0efb (patch) | |
tree | 929830312c327cfe44ce68e7903d82d1eb7ddc0b /src/northbridge/intel/x4x | |
parent | 276049f9eeb5a53d1f83ee0fb6876e965a6b7ca4 (diff) |
nb/intel/x4x/rcven.c: Change the verbosity of some messages
Displaying the whole receive enable procedure is very verbose should
only be done if CONFIG_DEBUG_RAM_SETUP is selected.
Change-Id: Ib568621e6d044624c1c0aeb6fb08945f561395c7
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/22912
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/northbridge/intel/x4x')
-rw-r--r-- | src/northbridge/intel/x4x/rcven.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/northbridge/intel/x4x/rcven.c b/src/northbridge/intel/x4x/rcven.c index e9a99fbd55..5e79c73f07 100644 --- a/src/northbridge/intel/x4x/rcven.c +++ b/src/northbridge/intel/x4x/rcven.c @@ -138,7 +138,7 @@ static int decrease_tap(struct rec_timing *timing) static int decr_coarse_low(u8 channel, u8 lane, u32 addr, struct rec_timing *timing) { - printk(BIOS_DEBUG, + printk(RAM_DEBUG, " Decreasing coarse until high to low transition is found\n"); while (sampledqs(addr, lane, channel) != DQS_LOW) { if (timing->coarse == 0) { @@ -149,7 +149,7 @@ static int decr_coarse_low(u8 channel, u8 lane, u32 addr, timing->coarse--; program_timing(timing, channel, lane); } - printk(BIOS_DEBUG, " DQS low at coarse=%d medium=%d\n", + printk(RAM_DEBUG, " DQS low at coarse=%d medium=%d\n", timing->coarse, timing->medium); return 0; } @@ -157,7 +157,7 @@ static int decr_coarse_low(u8 channel, u8 lane, u32 addr, static int fine_search_dqs_high(u8 channel, u8 lane, u32 addr, struct rec_timing *timing) { - printk(BIOS_DEBUG, + printk(RAM_DEBUG, " Increasing TAP until low to high transition is found\n"); /* * We use a do while loop since it happens that the strobe read @@ -184,7 +184,7 @@ static int fine_search_dqs_high(u8 channel, u8 lane, u32 addr, program_timing(timing, channel, lane); } while (sampledqs(addr, lane, channel) != DQS_HIGH); - printk(BIOS_DEBUG, " DQS high at coarse=%d medium=%d tap:%d\n", + printk(RAM_DEBUG, " DQS high at coarse=%d medium=%d tap:%d\n", timing->coarse, timing->medium, timing->tap); return 0; } @@ -193,7 +193,7 @@ static int find_dqs_low(u8 channel, u8 lane, u32 addr, struct rec_timing *timing) { /* Look for DQS low, using quarter steps. */ - printk(BIOS_DEBUG, " Increasing medium until DQS LOW is found\n"); + printk(RAM_DEBUG, " Increasing medium until DQS LOW is found\n"); while (sampledqs(addr, lane, channel) != DQS_LOW) { if (increase_medium(timing)) { printk(BIOS_CRIT, @@ -202,7 +202,7 @@ static int find_dqs_low(u8 channel, u8 lane, u32 addr, } program_timing(timing, channel, lane); } - printk(BIOS_DEBUG, " DQS low at coarse=%d medium=%d\n", + printk(RAM_DEBUG, " DQS low at coarse=%d medium=%d\n", timing->coarse, timing->medium); return 0; } @@ -210,7 +210,7 @@ static int find_dqs_high(u8 channel, u8 lane, u32 addr, struct rec_timing *timing) { /* Look for DQS high, using quarter steps. */ - printk(BIOS_DEBUG, " Increasing medium until DQS HIGH is found\n"); + printk(RAM_DEBUG, " Increasing medium until DQS HIGH is found\n"); while (sampledqs(addr, lane, channel) != DQS_HIGH) { if (increase_medium(timing)) { printk(BIOS_CRIT, @@ -219,7 +219,7 @@ static int find_dqs_high(u8 channel, u8 lane, u32 addr, } program_timing(timing, channel, lane); } - printk(BIOS_DEBUG, " DQS high at coarse=%d medium=%d\n", + printk(RAM_DEBUG, " DQS high at coarse=%d medium=%d\n", timing->coarse, timing->medium); return 0; } @@ -316,6 +316,8 @@ void rcven(struct sysinfo *s) struct rec_timing timing[TOTAL_BYTELANES]; u8 mincoarse; + printk(BIOS_DEBUG, "Starting DQS receiver enable calibration\n"); + MCHBAR8(0x5d8) = MCHBAR8(0x5d8) & ~0xc; MCHBAR8(0x9d8) = MCHBAR8(0x9d8) & ~0xc; MCHBAR8(0x5dc) = MCHBAR8(0x5dc) & ~0x80; |