From e87564ffe7d0636699467b776a24adffb2f11cca Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sat, 15 Apr 2017 20:07:53 +0300 Subject: binaryPI: Fix UMA calculations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vendorcode decides already in AMD_INIT_POST the exact location of UMA memory. To meet alignment requirements, it will extend uma_memory_size. We cannot calculate base from size and TOP_MEM1, but need to calculate size from base and TOP_MEM1 instead. Also allows selection of UmaMode==UMA_SPECIFIED to manually set amount of memory reserved for framebuffer. Change-Id: I0c375e5da0dfef6cef0c50272356cd32a87b1ff6 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/19346 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson Reviewed-by: Aaron Durbin --- src/northbridge/amd/pi/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/northbridge/amd/pi/Makefile.inc') diff --git a/src/northbridge/amd/pi/Makefile.inc b/src/northbridge/amd/pi/Makefile.inc index 09bc2ad729..1cd0c420ed 100644 --- a/src/northbridge/amd/pi/Makefile.inc +++ b/src/northbridge/amd/pi/Makefile.inc @@ -25,4 +25,6 @@ romstage-y += def_callouts.c ramstage-y += agesawrapper.c ramstage-y += def_callouts.c +romstage-y += ramtop.c +ramstage-y += ramtop.c endif -- cgit v1.2.3