From 19935655ac7c7c5d300b35e8864f73f57273a073 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 15 May 2011 00:37:59 +0000 Subject: [PATCH] add Radeon 5470, thanks RISC!; simplification in Blanking call, thanks Axel! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41507 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/radeon_hd/mode.cpp | 5 +---- src/add-ons/kernel/drivers/graphics/radeon_hd/driver.cpp | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/radeon_hd/mode.cpp b/src/add-ons/accelerants/radeon_hd/mode.cpp index 409287fd8b..82663a4ae0 100644 --- a/src/add-ons/accelerants/radeon_hd/mode.cpp +++ b/src/add-ons/accelerants/radeon_hd/mode.cpp @@ -147,10 +147,7 @@ CardBlankSet(int crtNumber, bool blank) } write32(blackColorReg, 0); - if (blank == true) - write32AtMask(blankControlReg, 0x00000100, 0x00000100); - else - write32AtMask(blankControlReg, 0, 0x00000100); + write32AtMask(blankControlReg, blank ? 0x00000100 : 0, 0x00000100); } diff --git a/src/add-ons/kernel/drivers/graphics/radeon_hd/driver.cpp b/src/add-ons/kernel/drivers/graphics/radeon_hd/driver.cpp index 2512f5bbbb..7ca9d513ec 100644 --- a/src/add-ons/kernel/drivers/graphics/radeon_hd/driver.cpp +++ b/src/add-ons/kernel/drivers/graphics/radeon_hd/driver.cpp @@ -86,6 +86,7 @@ const struct supported_device { // R800 series (HD54xx - HD59xx) // Codename: Evergreen {0x68f9, RADEON_R800 | 0x0, "Radeon HD 5450"}, /*RV8XX*/ + {0x68e0, RADEON_R800 | 0x0, "Radeon HD 5470"}, /*RV8XX*/ {0x68da, RADEON_R800 | 0x0, "Radeon HD 5500"}, /*RV8XX*/ {0x68d9, RADEON_R800 | 0x0, "Radeon HD 5570"}, /*RV8XX*/ {0x68b9, RADEON_R800 | 0x0, "Radeon HD 5600"}, /*RV8XX*/