diff options
author | Nico Huber <nico.huber@secunet.com> | 2017-01-19 16:28:18 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-02-04 23:04:06 +0100 |
commit | 561bebfbaa55d5ab0656fbfc4866de88722d9618 (patch) | |
tree | fb725cf6df5e7c1093523b57ed924046ad4d423e /src/drivers/intel/gma/vbt.c | |
parent | 84394616dffac91bcf94423ed02b2877fc2d270f (diff) | |
download | coreboot-561bebfbaa55d5ab0656fbfc4866de88722d9618.tar.xz |
drivers/intel/gma/vbt: Add Kconfig symbol for SSC ref
The selection of the SSC reference frequency for LVDS was based on a
completely unrelated clock.
The `ssc_freq` flag should be set when the SSC reference runs at a
different frequency than the general display reference clock (DREF).
For most platforms, there is no choice, i.e. for i945 and gm45 the SSC
reference always differs from the display reference clock (i945: 66Mhz
SSC vs. 48MHz DREF; gm45: 100MHz SSC vs. 96Mhz DREF), for Nehalem and
newer, it's the same frequency for SSC/non-SSC (120MHz). The only,
currently supported platform with a choice seems to be Pineview, where
the alternative is 100MHz vs. the default 96MHz.
Change-Id: I7791754bd366c9fe6832c32eccef4657ba5f309b
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/18186
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers/intel/gma/vbt.c')
-rw-r--r-- | src/drivers/intel/gma/vbt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/intel/gma/vbt.c b/src/drivers/intel/gma/vbt.c index 0d76afee48..d8dd9301a7 100644 --- a/src/drivers/intel/gma/vbt.c +++ b/src/drivers/intel/gma/vbt.c @@ -2,6 +2,7 @@ * This file is part of the coreboot project. * * Copyright (C) 2013, 2014 Vladimir Serbinenko + * Copyright (C) 2017 secunet Security Networks AG * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -59,7 +60,7 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *const conf, genfeat->flexaim = 1; genfeat->download_ext_vbt = 1; genfeat->enable_ssc = conf->use_spread_spectrum_clock; - genfeat->ssc_freq = !conf->link_frequency_270_mhz; + genfeat->ssc_freq = IS_ENABLED(CONFIG_INTEL_GMA_SSC_ALTERNATE_REF); genfeat->rsvd10 = 0x4; genfeat->legacy_monitor_detect = 1; genfeat->int_crt_support = 1; |