aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 0a97aeb083dd..6df7bd569495 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -723,7 +723,7 @@ bool radeon_get_atom_connector_info_from_supported_devices_table(struct
723 } 723 }
724 724
725 if (i == ATOM_DEVICE_CV_INDEX) { 725 if (i == ATOM_DEVICE_CV_INDEX) {
726 DRM_DEBUG("Skipping Component Video\n"); 726 DRM_DEBUG_KMS("Skipping Component Video\n");
727 continue; 727 continue;
728 } 728 }
729 729
@@ -1095,7 +1095,7 @@ bool radeon_atombios_get_tmds_info(struct radeon_encoder *encoder,
1095 (tmds_info->asMiscInfo[i]. 1095 (tmds_info->asMiscInfo[i].
1096 ucPLL_VoltageSwing & 0xf) << 16; 1096 ucPLL_VoltageSwing & 0xf) << 16;
1097 1097
1098 DRM_DEBUG("TMDS PLL From ATOMBIOS %u %x\n", 1098 DRM_DEBUG_KMS("TMDS PLL From ATOMBIOS %u %x\n",
1099 tmds->tmds_pll[i].freq, 1099 tmds->tmds_pll[i].freq,
1100 tmds->tmds_pll[i].value); 1100 tmds->tmds_pll[i].value);
1101 1101
@@ -2187,11 +2187,11 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2187 if ((radeon_encoder->devices & ATOM_DEVICE_TV1_SUPPORT) && 2187 if ((radeon_encoder->devices & ATOM_DEVICE_TV1_SUPPORT) &&
2188 (radeon_connector->devices & ATOM_DEVICE_TV1_SUPPORT)) { 2188 (radeon_connector->devices & ATOM_DEVICE_TV1_SUPPORT)) {
2189 if (connected) { 2189 if (connected) {
2190 DRM_DEBUG("TV1 connected\n"); 2190 DRM_DEBUG_KMS("TV1 connected\n");
2191 bios_3_scratch |= ATOM_S3_TV1_ACTIVE; 2191 bios_3_scratch |= ATOM_S3_TV1_ACTIVE;
2192 bios_6_scratch |= ATOM_S6_ACC_REQ_TV1; 2192 bios_6_scratch |= ATOM_S6_ACC_REQ_TV1;
2193 } else { 2193 } else {
2194 DRM_DEBUG("TV1 disconnected\n"); 2194 DRM_DEBUG_KMS("TV1 disconnected\n");
2195 bios_0_scratch &= ~ATOM_S0_TV1_MASK; 2195 bios_0_scratch &= ~ATOM_S0_TV1_MASK;
2196 bios_3_scratch &= ~ATOM_S3_TV1_ACTIVE; 2196 bios_3_scratch &= ~ATOM_S3_TV1_ACTIVE;
2197 bios_6_scratch &= ~ATOM_S6_ACC_REQ_TV1; 2197 bios_6_scratch &= ~ATOM_S6_ACC_REQ_TV1;
@@ -2200,11 +2200,11 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2200 if ((radeon_encoder->devices & ATOM_DEVICE_CV_SUPPORT) && 2200 if ((radeon_encoder->devices & ATOM_DEVICE_CV_SUPPORT) &&
2201 (radeon_connector->devices & ATOM_DEVICE_CV_SUPPORT)) { 2201 (radeon_connector->devices & ATOM_DEVICE_CV_SUPPORT)) {
2202 if (connected) { 2202 if (connected) {
2203 DRM_DEBUG("CV connected\n"); 2203 DRM_DEBUG_KMS("CV connected\n");
2204 bios_3_scratch |= ATOM_S3_CV_ACTIVE; 2204 bios_3_scratch |= ATOM_S3_CV_ACTIVE;
2205 bios_6_scratch |= ATOM_S6_ACC_REQ_CV; 2205 bios_6_scratch |= ATOM_S6_ACC_REQ_CV;
2206 } else { 2206 } else {
2207 DRM_DEBUG("CV disconnected\n"); 2207 DRM_DEBUG_KMS("CV disconnected\n");
2208 bios_0_scratch &= ~ATOM_S0_CV_MASK; 2208 bios_0_scratch &= ~ATOM_S0_CV_MASK;
2209 bios_3_scratch &= ~ATOM_S3_CV_ACTIVE; 2209 bios_3_scratch &= ~ATOM_S3_CV_ACTIVE;
2210 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CV; 2210 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CV;
@@ -2213,12 +2213,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2213 if ((radeon_encoder->devices & ATOM_DEVICE_LCD1_SUPPORT) && 2213 if ((radeon_encoder->devices & ATOM_DEVICE_LCD1_SUPPORT) &&
2214 (radeon_connector->devices & ATOM_DEVICE_LCD1_SUPPORT)) { 2214 (radeon_connector->devices & ATOM_DEVICE_LCD1_SUPPORT)) {
2215 if (connected) { 2215 if (connected) {
2216 DRM_DEBUG("LCD1 connected\n"); 2216 DRM_DEBUG_KMS("LCD1 connected\n");
2217 bios_0_scratch |= ATOM_S0_LCD1; 2217 bios_0_scratch |= ATOM_S0_LCD1;
2218 bios_3_scratch |= ATOM_S3_LCD1_ACTIVE; 2218 bios_3_scratch |= ATOM_S3_LCD1_ACTIVE;
2219 bios_6_scratch |= ATOM_S6_ACC_REQ_LCD1; 2219 bios_6_scratch |= ATOM_S6_ACC_REQ_LCD1;
2220 } else { 2220 } else {
2221 DRM_DEBUG("LCD1 disconnected\n"); 2221 DRM_DEBUG_KMS("LCD1 disconnected\n");
2222 bios_0_scratch &= ~ATOM_S0_LCD1; 2222 bios_0_scratch &= ~ATOM_S0_LCD1;
2223 bios_3_scratch &= ~ATOM_S3_LCD1_ACTIVE; 2223 bios_3_scratch &= ~ATOM_S3_LCD1_ACTIVE;
2224 bios_6_scratch &= ~ATOM_S6_ACC_REQ_LCD1; 2224 bios_6_scratch &= ~ATOM_S6_ACC_REQ_LCD1;
@@ -2227,12 +2227,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2227 if ((radeon_encoder->devices & ATOM_DEVICE_CRT1_SUPPORT) && 2227 if ((radeon_encoder->devices & ATOM_DEVICE_CRT1_SUPPORT) &&
2228 (radeon_connector->devices & ATOM_DEVICE_CRT1_SUPPORT)) { 2228 (radeon_connector->devices & ATOM_DEVICE_CRT1_SUPPORT)) {
2229 if (connected) { 2229 if (connected) {
2230 DRM_DEBUG("CRT1 connected\n"); 2230 DRM_DEBUG_KMS("CRT1 connected\n");
2231 bios_0_scratch |= ATOM_S0_CRT1_COLOR; 2231 bios_0_scratch |= ATOM_S0_CRT1_COLOR;
2232 bios_3_scratch |= ATOM_S3_CRT1_ACTIVE; 2232 bios_3_scratch |= ATOM_S3_CRT1_ACTIVE;
2233 bios_6_scratch |= ATOM_S6_ACC_REQ_CRT1; 2233 bios_6_scratch |= ATOM_S6_ACC_REQ_CRT1;
2234 } else { 2234 } else {
2235 DRM_DEBUG("CRT1 disconnected\n"); 2235 DRM_DEBUG_KMS("CRT1 disconnected\n");
2236 bios_0_scratch &= ~ATOM_S0_CRT1_MASK; 2236 bios_0_scratch &= ~ATOM_S0_CRT1_MASK;
2237 bios_3_scratch &= ~ATOM_S3_CRT1_ACTIVE; 2237 bios_3_scratch &= ~ATOM_S3_CRT1_ACTIVE;
2238 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CRT1; 2238 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CRT1;
@@ -2241,12 +2241,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2241 if ((radeon_encoder->devices & ATOM_DEVICE_CRT2_SUPPORT) && 2241 if ((radeon_encoder->devices & ATOM_DEVICE_CRT2_SUPPORT) &&
2242 (radeon_connector->devices & ATOM_DEVICE_CRT2_SUPPORT)) { 2242 (radeon_connector->devices & ATOM_DEVICE_CRT2_SUPPORT)) {
2243 if (connected) { 2243 if (connected) {
2244 DRM_DEBUG("CRT2 connected\n"); 2244 DRM_DEBUG_KMS("CRT2 connected\n");
2245 bios_0_scratch |= ATOM_S0_CRT2_COLOR; 2245 bios_0_scratch |= ATOM_S0_CRT2_COLOR;
2246 bios_3_scratch |= ATOM_S3_CRT2_ACTIVE; 2246 bios_3_scratch |= ATOM_S3_CRT2_ACTIVE;
2247 bios_6_scratch |= ATOM_S6_ACC_REQ_CRT2; 2247 bios_6_scratch |= ATOM_S6_ACC_REQ_CRT2;
2248 } else { 2248 } else {
2249 DRM_DEBUG("CRT2 disconnected\n"); 2249 DRM_DEBUG_KMS("CRT2 disconnected\n");
2250 bios_0_scratch &= ~ATOM_S0_CRT2_MASK; 2250 bios_0_scratch &= ~ATOM_S0_CRT2_MASK;
2251 bios_3_scratch &= ~ATOM_S3_CRT2_ACTIVE; 2251 bios_3_scratch &= ~ATOM_S3_CRT2_ACTIVE;
2252 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CRT2; 2252 bios_6_scratch &= ~ATOM_S6_ACC_REQ_CRT2;
@@ -2255,12 +2255,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2255 if ((radeon_encoder->devices & ATOM_DEVICE_DFP1_SUPPORT) && 2255 if ((radeon_encoder->devices & ATOM_DEVICE_DFP1_SUPPORT) &&
2256 (radeon_connector->devices & ATOM_DEVICE_DFP1_SUPPORT)) { 2256 (radeon_connector->devices & ATOM_DEVICE_DFP1_SUPPORT)) {
2257 if (connected) { 2257 if (connected) {
2258 DRM_DEBUG("DFP1 connected\n"); 2258 DRM_DEBUG_KMS("DFP1 connected\n");
2259 bios_0_scratch |= ATOM_S0_DFP1; 2259 bios_0_scratch |= ATOM_S0_DFP1;
2260 bios_3_scratch |= ATOM_S3_DFP1_ACTIVE; 2260 bios_3_scratch |= ATOM_S3_DFP1_ACTIVE;
2261 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP1; 2261 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP1;
2262 } else { 2262 } else {
2263 DRM_DEBUG("DFP1 disconnected\n"); 2263 DRM_DEBUG_KMS("DFP1 disconnected\n");
2264 bios_0_scratch &= ~ATOM_S0_DFP1; 2264 bios_0_scratch &= ~ATOM_S0_DFP1;
2265 bios_3_scratch &= ~ATOM_S3_DFP1_ACTIVE; 2265 bios_3_scratch &= ~ATOM_S3_DFP1_ACTIVE;
2266 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP1; 2266 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP1;
@@ -2269,12 +2269,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2269 if ((radeon_encoder->devices & ATOM_DEVICE_DFP2_SUPPORT) && 2269 if ((radeon_encoder->devices & ATOM_DEVICE_DFP2_SUPPORT) &&
2270 (radeon_connector->devices & ATOM_DEVICE_DFP2_SUPPORT)) { 2270 (radeon_connector->devices & ATOM_DEVICE_DFP2_SUPPORT)) {
2271 if (connected) { 2271 if (connected) {
2272 DRM_DEBUG("DFP2 connected\n"); 2272 DRM_DEBUG_KMS("DFP2 connected\n");
2273 bios_0_scratch |= ATOM_S0_DFP2; 2273 bios_0_scratch |= ATOM_S0_DFP2;
2274 bios_3_scratch |= ATOM_S3_DFP2_ACTIVE; 2274 bios_3_scratch |= ATOM_S3_DFP2_ACTIVE;
2275 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP2; 2275 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP2;
2276 } else { 2276 } else {
2277 DRM_DEBUG("DFP2 disconnected\n"); 2277 DRM_DEBUG_KMS("DFP2 disconnected\n");
2278 bios_0_scratch &= ~ATOM_S0_DFP2; 2278 bios_0_scratch &= ~ATOM_S0_DFP2;
2279 bios_3_scratch &= ~ATOM_S3_DFP2_ACTIVE; 2279 bios_3_scratch &= ~ATOM_S3_DFP2_ACTIVE;
2280 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP2; 2280 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP2;
@@ -2283,12 +2283,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2283 if ((radeon_encoder->devices & ATOM_DEVICE_DFP3_SUPPORT) && 2283 if ((radeon_encoder->devices & ATOM_DEVICE_DFP3_SUPPORT) &&
2284 (radeon_connector->devices & ATOM_DEVICE_DFP3_SUPPORT)) { 2284 (radeon_connector->devices & ATOM_DEVICE_DFP3_SUPPORT)) {
2285 if (connected) { 2285 if (connected) {
2286 DRM_DEBUG("DFP3 connected\n"); 2286 DRM_DEBUG_KMS("DFP3 connected\n");
2287 bios_0_scratch |= ATOM_S0_DFP3; 2287 bios_0_scratch |= ATOM_S0_DFP3;
2288 bios_3_scratch |= ATOM_S3_DFP3_ACTIVE; 2288 bios_3_scratch |= ATOM_S3_DFP3_ACTIVE;
2289 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP3; 2289 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP3;
2290 } else { 2290 } else {
2291 DRM_DEBUG("DFP3 disconnected\n"); 2291 DRM_DEBUG_KMS("DFP3 disconnected\n");
2292 bios_0_scratch &= ~ATOM_S0_DFP3; 2292 bios_0_scratch &= ~ATOM_S0_DFP3;
2293 bios_3_scratch &= ~ATOM_S3_DFP3_ACTIVE; 2293 bios_3_scratch &= ~ATOM_S3_DFP3_ACTIVE;
2294 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP3; 2294 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP3;
@@ -2297,12 +2297,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2297 if ((radeon_encoder->devices & ATOM_DEVICE_DFP4_SUPPORT) && 2297 if ((radeon_encoder->devices & ATOM_DEVICE_DFP4_SUPPORT) &&
2298 (radeon_connector->devices & ATOM_DEVICE_DFP4_SUPPORT)) { 2298 (radeon_connector->devices & ATOM_DEVICE_DFP4_SUPPORT)) {
2299 if (connected) { 2299 if (connected) {
2300 DRM_DEBUG("DFP4 connected\n"); 2300 DRM_DEBUG_KMS("DFP4 connected\n");
2301 bios_0_scratch |= ATOM_S0_DFP4; 2301 bios_0_scratch |= ATOM_S0_DFP4;
2302 bios_3_scratch |= ATOM_S3_DFP4_ACTIVE; 2302 bios_3_scratch |= ATOM_S3_DFP4_ACTIVE;
2303 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP4; 2303 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP4;
2304 } else { 2304 } else {
2305 DRM_DEBUG("DFP4 disconnected\n"); 2305 DRM_DEBUG_KMS("DFP4 disconnected\n");
2306 bios_0_scratch &= ~ATOM_S0_DFP4; 2306 bios_0_scratch &= ~ATOM_S0_DFP4;
2307 bios_3_scratch &= ~ATOM_S3_DFP4_ACTIVE; 2307 bios_3_scratch &= ~ATOM_S3_DFP4_ACTIVE;
2308 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP4; 2308 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP4;
@@ -2311,12 +2311,12 @@ radeon_atombios_connected_scratch_regs(struct drm_connector *connector,
2311 if ((radeon_encoder->devices & ATOM_DEVICE_DFP5_SUPPORT) && 2311 if ((radeon_encoder->devices & ATOM_DEVICE_DFP5_SUPPORT) &&
2312 (radeon_connector->devices & ATOM_DEVICE_DFP5_SUPPORT)) { 2312 (radeon_connector->devices & ATOM_DEVICE_DFP5_SUPPORT)) {
2313 if (connected) { 2313 if (connected) {
2314 DRM_DEBUG("DFP5 connected\n"); 2314 DRM_DEBUG_KMS("DFP5 connected\n");
2315 bios_0_scratch |= ATOM_S0_DFP5; 2315 bios_0_scratch |= ATOM_S0_DFP5;
2316 bios_3_scratch |= ATOM_S3_DFP5_ACTIVE; 2316 bios_3_scratch |= ATOM_S3_DFP5_ACTIVE;
2317 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP5; 2317 bios_6_scratch |= ATOM_S6_ACC_REQ_DFP5;
2318 } else { 2318 } else {
2319 DRM_DEBUG("DFP5 disconnected\n"); 2319 DRM_DEBUG_KMS("DFP5 disconnected\n");
2320 bios_0_scratch &= ~ATOM_S0_DFP5; 2320 bios_0_scratch &= ~ATOM_S0_DFP5;
2321 bios_3_scratch &= ~ATOM_S3_DFP5_ACTIVE; 2321 bios_3_scratch &= ~ATOM_S3_DFP5_ACTIVE;
2322 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP5; 2322 bios_6_scratch &= ~ATOM_S6_ACC_REQ_DFP5;