summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avivotool.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/avivotool.c b/avivotool.c
index f5b3f72..658fdf3 100644
--- a/avivotool.c
+++ b/avivotool.c
@@ -1901,8 +1901,13 @@ static int map_radeon_mem(void)
return -1;
}
- ctrl_base = device->regions[2].base_addr;
- ctrl_size = device->regions[2].size;
+ if (card_info->chip_family < CHIP_FAMILY_BONAIRE) {
+ ctrl_base = device->regions[2].base_addr;
+ ctrl_size = device->regions[2].size;
+ } else {
+ ctrl_base = device->regions[5].base_addr;
+ ctrl_size = device->regions[5].size;
+ }
if (!ctrl_size) {
fprintf(stderr, "error: missing ctrl region\n");
return -1;