[coreboot-gerrit] Change in coreboot[master]: src/sb/amd/pi/hudson/sd.c: disable SDR50 tuning and set correct clock...

Piotr Król (Code Review) gerrit at coreboot.org
Fri Jul 6 00:10:02 CEST 2018


Hello Michał Żygowski,

I'd like you to do a code review. Please visit

    https://review.coreboot.org/27359

to review the following change.


Change subject: src/sb/amd/pi/hudson/sd.c: disable SDR50 tuning and set correct clock freq in SD2.0 mode
......................................................................

src/sb/amd/pi/hudson/sd.c: disable SDR50 tuning and set correct clock freq in SD2.0 mode

According to BKDG for AMD Family 16h Models 30h-3Fh Processors
SDR50 tuning should be disabled in 0xA8 register.

Also fix clock frequency setting in 0xA4 for stepping >= A1
which caused reduced performance of SD cards transfer speed
even by half.

Change-Id: I80ca754b0c89e08aa90ff885467c7486a3efb999
Signed-off-by: Michał Żygowski <michal.zygowski at 3mdeb.com>
Signed-off-by: Piotr Król <piotr.krol at 3mdeb.com>
---
M src/southbridge/amd/pi/hudson/sd.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/27359/1

diff --git a/src/southbridge/amd/pi/hudson/sd.c b/src/southbridge/amd/pi/hudson/sd.c
index a76ff92..a87367f 100644
--- a/src/southbridge/amd/pi/hudson/sd.c
+++ b/src/southbridge/amd/pi/hudson/sd.c
@@ -43,7 +43,8 @@
 			pci_write_config32(dev, 0xD0, 0x0000058B);
 		}
 		else {					/* Stepping >= A1 */
-			pci_write_config32(dev, 0xA4, 0x31FE3FB2);
+			pci_write_config32(dev, 0xA4, 0x31FE32B2);
+			pci_write_config32(dev, 0xA8, 0x00000070);
 			pci_write_config32(dev, 0xB0, 0x01180C19);
 			pci_write_config32(dev, 0xD0, 0x0000078B);
 		}

-- 
To view, visit https://review.coreboot.org/27359
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80ca754b0c89e08aa90ff885467c7486a3efb999
Gerrit-Change-Number: 27359
Gerrit-PatchSet: 1
Gerrit-Owner: Piotr Król <piotr.krol at 3mdeb.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski at 3mdeb.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180705/e3b26df0/attachment-0001.html>


More information about the coreboot-gerrit mailing list