summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZheng Bao <zheng.bao@amd.com>2010-08-17 02:14:53 +0000
committerZheng Bao <Zheng.Bao@amd.com>2010-08-17 02:14:53 +0000
commit52a3c3b7f71bde9667b75bfb2d53823614f7807f (patch)
tree261b4700de7362fd6a628e9ed0685a11aa8d1075 /src
parente39251973bd854c297d5934e0c1e3f990f20b923 (diff)
Feature of lane reversal of AMD RS780 is tested.
Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5703 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/amd/rs780/rs780_gfx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/southbridge/amd/rs780/rs780_gfx.c b/src/southbridge/amd/rs780/rs780_gfx.c
index 7decabdac3..0f493f26d0 100644
--- a/src/southbridge/amd/rs780/rs780_gfx.c
+++ b/src/southbridge/amd/rs780/rs780_gfx.c
@@ -1178,9 +1178,11 @@ void rs780_gfx_init(device_t nb_dev, device_t dev, u32 port)
/* Single-port/Dual-port configureation. */
switch (cfg->gfx_dual_slot) {
case 0:
- /* step 1, lane reversal (only need if CMOS option is enabled) */
+ /* step 1, lane reversal (only need if build config option is enabled) */
if (cfg->gfx_lane_reversal) {
+ set_nbmisc_enable_bits(nb_dev, 0x36, 1 << 31, 1 << 31);
set_nbmisc_enable_bits(nb_dev, 0x33, 1 << 2, 1 << 2);
+ set_nbmisc_enable_bits(nb_dev, 0x36, 1 << 31, 0 << 31);
}
printk(BIOS_DEBUG, "rs780_gfx_init step1.\n");
@@ -1194,10 +1196,12 @@ void rs780_gfx_init(device_t nb_dev, device_t dev, u32 port)
break;
case 1:
- /* step 1, lane reversal (only need if CMOS option is enabled) */
+ /* step 1, lane reversal (only need if build config option is enabled) */
if (cfg->gfx_lane_reversal) {
+ set_nbmisc_enable_bits(nb_dev, 0x36, 1 << 31, 1 << 31);
set_nbmisc_enable_bits(nb_dev, 0x33, 1 << 2, 1 << 2);
set_nbmisc_enable_bits(nb_dev, 0x33, 1 << 3, 1 << 3);
+ set_nbmisc_enable_bits(nb_dev, 0x36, 1 << 31, 0 << 31);
}
printk(BIOS_DEBUG, "rs780_gfx_init step1.\n");
/* step 1.1, dual-slot gfx configuration (only need if CMOS option is enabled) */