AMD cimx/sb800: Disable unused GPP ports

If devicetree.cb has GPP port off, really disable it before even
trying to do link training.

Change-Id: I810945da28d86768e88249dc4d29a50ad9f9959b
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/8385
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Kyösti Mälkki 2015-02-07 07:07:16 +02:00
parent 486c05f4bf
commit 8dba709a06
1 changed files with 4 additions and 1 deletions

View File

@ -293,7 +293,10 @@ PreInitGppLink (
// Mask out non-applicable ports according to the target link configuration mode
for ( portId = 0; portId < MAX_GPP_PORTS; portId++ ) {
pConfig->PORTCONFIG[portId].PortCfg.PortPresent &= (reg32Value >> portId) & BIT0;
if (!(reg32Value & (1 << portId)))
pConfig->PORTCONFIG[portId].PortCfg.PortPresent = false;
else if (!pConfig->PORTCONFIG[portId].PortCfg.PortPresent)
reg32Value &= ~(1 << portId);
}
//