diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 53b5560..8681ce2 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -90,6 +90,7 @@ extern int radeon_connector_table; extern int radeon_tv; extern int radeon_new_pll; extern int radeon_audio; +extern int radeon_enable_ss; /* * Copy from radeon_drv.h so we don't have to include both and have conflicting diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 41dd8eb..caff9f8 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -1002,6 +1002,9 @@ static struct radeon_atom_ss *radeon_atombios_get_ss_info(struct struct radeon_atom_ss *ss = NULL; int i; + if (!radeon_enable_ss) + return NULL; + if (id > ATOM_MAX_SS_ENTRY) return NULL; diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 8ba3de7..40342eb 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -88,6 +88,7 @@ int radeon_connector_table = 0; int radeon_tv = 1; int radeon_new_pll = 1; int radeon_audio = 1; +int radeon_enable_ss = 1; MODULE_PARM_DESC(no_wb, "Disable AGP writeback for scratch registers"); module_param_named(no_wb, radeon_no_wb, int, 0444); @@ -128,6 +129,9 @@ module_param_named(new_pll, radeon_new_pll, int, 0444); MODULE_PARM_DESC(audio, "Audio enable (0 = disable)"); module_param_named(audio, radeon_audio, int, 0444); +MODULE_PARM_DESC(spread_spectrum, "Enable spread spectrum on LVDS (0 = disable)"); +module_param_named(spread_spectrum, radeon_enable_ss, int, 0444); + static int radeon_suspend(struct drm_device *dev, pm_message_t state) { drm_radeon_private_t *dev_priv = dev->dev_private;