[coreboot] [commit] r5705 - trunk/src/southbridge/amd/rs780

repository service svn at coreboot.org
Tue Aug 17 08:18:49 CEST 2010


Author: oxygene
Date: Tue Aug 17 08:18:47 2010
New Revision: 5705
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5705

Log:
Look for actual framebuffer size instead of hardcoding UMA

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>
Acked-by: Marc Jones <marcj303 at gmail.com>

Modified:
   trunk/src/southbridge/amd/rs780/rs780_gfx.c

Modified: trunk/src/southbridge/amd/rs780/rs780_gfx.c
==============================================================================
--- trunk/src/southbridge/amd/rs780/rs780_gfx.c	Tue Aug 17 08:12:59 2010	(r5704)
+++ trunk/src/southbridge/amd/rs780/rs780_gfx.c	Tue Aug 17 08:18:47 2010	(r5705)
@@ -660,8 +660,10 @@
 
 	/* Set UMA in the 780 side. */
 	/* UMA start address, size. */
-	/* The same value in spite of system memory size. */
-	nbmc_write_index(nb_dev, 0x10, 0xcfffc000);
+	/* The UMA starts at 0xC0000000 of internal RS780 address space
+	    [31:16] addr of last byte | [31:16] addr of first byte
+	*/
+	nbmc_write_index(nb_dev, 0x10, ((uma_memory_size - 1 + 0xC0000000) & (~0xffff)) | 0xc000);
 	nbmc_write_index(nb_dev, 0x11, uma_memory_base);
 	nbmc_write_index(nb_dev, 0x12, 0);
 	nbmc_write_index(nb_dev, 0xf0, 256);




More information about the coreboot mailing list