nb/amd/mct_ddr3: Enhance debugging around MEMCLK frequency change
Change-Id: I5056cf885b7063a97c095bfaaf01dd8da777a425 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: https://review.coreboot.org/14447 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
490160140a
commit
5a359365b9
|
@ -2,7 +2,7 @@
|
||||||
* This file is part of the coreboot project.
|
* This file is part of the coreboot project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Advanced Micro Devices, Inc.
|
* Copyright (C) 2010 Advanced Micro Devices, Inc.
|
||||||
* Copyright (C) 2015 Timothy Pearson <tpearson@raptorengineeringinc.com>, Raptor Engineering
|
* Copyright (C) 2015 - 2016 Raptor Engineering, LLC
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -358,9 +358,13 @@ void SetTargetFreq(struct MCTStatStruc *pMCTstat,
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
uint8_t package_type = mctGet_NVbits(NV_PACK_TYPE);
|
uint8_t package_type = mctGet_NVbits(NV_PACK_TYPE);
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "%s: Start\n", __func__);
|
||||||
|
|
||||||
struct DCTStatStruc *pDCTstat;
|
struct DCTStatStruc *pDCTstat;
|
||||||
pDCTstat = pDCTstatA + Node;
|
pDCTstat = pDCTstatA + Node;
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "%s: Node %d: New frequency code: %04x\n", __func__, Node, pDCTstat->TargetFreq);
|
||||||
|
|
||||||
if (is_fam15h()) {
|
if (is_fam15h()) {
|
||||||
/* Program F2x[1, 0]90[DisDllShutDownSR]=1. */
|
/* Program F2x[1, 0]90[DisDllShutDownSR]=1. */
|
||||||
if (pDCTstat->DIMMValidDCT[0]) {
|
if (pDCTstat->DIMMValidDCT[0]) {
|
||||||
|
@ -448,6 +452,8 @@ void SetTargetFreq(struct MCTStatStruc *pMCTstat,
|
||||||
FreqChgCtrlWrd(pMCTstat, pDCTstat, 1);
|
FreqChgCtrlWrd(pMCTstat, pDCTstat, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "%s: Done\n", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Modify_OnDimmMirror(struct DCTStatStruc *pDCTstat, u8 dct, u8 set)
|
static void Modify_OnDimmMirror(struct DCTStatStruc *pDCTstat, u8 dct, u8 set)
|
||||||
|
|
Loading…
Reference in New Issue