diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2012-03-20 17:18:01 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-21 02:55:50 -0400 |
commit | 82d118efc65214f46138371a6daab5e7d71a723d (patch) | |
tree | 061cd7d438822465c6895cd18f9ba371303df347 | |
parent | 43b3cd995f304c983393b7ed6563f09781bc41d0 (diff) |
drm/radeon/kms: fix up atom HPD gpio parsing for DCE6
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_reg.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/si_reg.h | 33 |
3 files changed, 37 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 2554611e167c..7e2ba2580899 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
@@ -253,7 +253,9 @@ static struct radeon_hpd radeon_atom_get_hpd_info_from_gpio(struct radeon_device | |||
253 | 253 | ||
254 | memset(&hpd, 0, sizeof(struct radeon_hpd)); | 254 | memset(&hpd, 0, sizeof(struct radeon_hpd)); |
255 | 255 | ||
256 | if (ASIC_IS_DCE4(rdev)) | 256 | if (ASIC_IS_DCE6(rdev)) |
257 | reg = SI_DC_GPIO_HPD_A; | ||
258 | else if (ASIC_IS_DCE4(rdev)) | ||
257 | reg = EVERGREEN_DC_GPIO_HPD_A; | 259 | reg = EVERGREEN_DC_GPIO_HPD_A; |
258 | else | 260 | else |
259 | reg = AVIVO_DC_GPIO_HPD_A; | 261 | reg = AVIVO_DC_GPIO_HPD_A; |
diff --git a/drivers/gpu/drm/radeon/radeon_reg.h b/drivers/gpu/drm/radeon/radeon_reg.h index 509863411285..5d8f735d6aaf 100644 --- a/drivers/gpu/drm/radeon/radeon_reg.h +++ b/drivers/gpu/drm/radeon/radeon_reg.h | |||
@@ -56,6 +56,7 @@ | |||
56 | #include "r600_reg.h" | 56 | #include "r600_reg.h" |
57 | #include "evergreen_reg.h" | 57 | #include "evergreen_reg.h" |
58 | #include "ni_reg.h" | 58 | #include "ni_reg.h" |
59 | #include "si_reg.h" | ||
59 | 60 | ||
60 | #define RADEON_MC_AGP_LOCATION 0x014c | 61 | #define RADEON_MC_AGP_LOCATION 0x014c |
61 | #define RADEON_MC_AGP_START_MASK 0x0000FFFF | 62 | #define RADEON_MC_AGP_START_MASK 0x0000FFFF |
diff --git a/drivers/gpu/drm/radeon/si_reg.h b/drivers/gpu/drm/radeon/si_reg.h new file mode 100644 index 000000000000..eda938a7cb6e --- /dev/null +++ b/drivers/gpu/drm/radeon/si_reg.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright 2010 Advanced Micro Devices, Inc. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
20 | * OTHER DEALINGS IN THE SOFTWARE. | ||
21 | * | ||
22 | * Authors: Alex Deucher | ||
23 | */ | ||
24 | #ifndef __SI_REG_H__ | ||
25 | #define __SI_REG_H__ | ||
26 | |||
27 | /* SI */ | ||
28 | #define SI_DC_GPIO_HPD_MASK 0x65b0 | ||
29 | #define SI_DC_GPIO_HPD_A 0x65b4 | ||
30 | #define SI_DC_GPIO_HPD_EN 0x65b8 | ||
31 | #define SI_DC_GPIO_HPD_Y 0x65bc | ||
32 | |||
33 | #endif | ||