diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2010-08-17 06:18:47 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-08-17 06:18:47 +0000 |
commit | ae7a4258c123b53e2a348f6a5913dc4e964fe8ca (patch) | |
tree | f3c47e3149505648c96ca7807f0ae915bde442c2 | |
parent | e660f041610e2030d85663735ebad247a1d534ae (diff) | |
download | coreboot-ae7a4258c123b53e2a348f6a5913dc4e964fe8ca.tar.xz |
Look for actual framebuffer size instead of hardcoding UMA
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5705 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/southbridge/amd/rs780/rs780_gfx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/southbridge/amd/rs780/rs780_gfx.c b/src/southbridge/amd/rs780/rs780_gfx.c index 0f493f26d0..88cb935de8 100644 --- a/src/southbridge/amd/rs780/rs780_gfx.c +++ b/src/southbridge/amd/rs780/rs780_gfx.c @@ -660,8 +660,10 @@ static void rs780_internal_gfx_enable(device_t dev) /* 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); |