nb/intel/i945: Use boolean for gpu_lvds_use_spread_spectrum_clock

Change-Id: I5f11bde99dfcde81c9dc62c1102330c0a6c16e04
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70149
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Elyes Haouas 2022-11-30 07:51:11 +01:00 committed by Felix Held
parent 5a845ee894
commit a521d66116
4 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ chip northbridge/intel/i945
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
register "gpu_hotplug" = "0x00000220"
register "gpu_lvds_use_spread_spectrum_clock" = "1"
register "gpu_lvds_use_spread_spectrum_clock" = "true"
register "pwm_freq" = "180"
register "gpu_panel_power_up_delay" = "250"
register "gpu_panel_power_backlight_on_delay" = "2380"

View File

@ -5,7 +5,7 @@ chip northbridge/intel/i945
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
register "gpu_hotplug" = "0x00000220"
register "gpu_lvds_use_spread_spectrum_clock" = "1"
register "gpu_lvds_use_spread_spectrum_clock" = "true"
register "pwm_freq" = "275"
register "gpu_panel_power_up_delay" = "250"
register "gpu_panel_power_backlight_on_delay" = "2380"

View File

@ -5,7 +5,7 @@ chip northbridge/intel/i945
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
register "gpu_hotplug" = "0x00000220"
register "gpu_lvds_use_spread_spectrum_clock" = "1"
register "gpu_lvds_use_spread_spectrum_clock" = "true"
register "pwm_freq" = "180"
register "gpu_panel_power_up_delay" = "250"
register "gpu_panel_power_backlight_on_delay" = "2380"

View File

@ -4,6 +4,7 @@
#define NORTHBRIDGE_INTEL_I945_CHIP_H
#include <drivers/intel/gma/i915.h>
#include <types.h>
struct northbridge_intel_i945_config {
/* In units of 100us timer */
@ -17,7 +18,7 @@ struct northbridge_intel_i945_config {
u32 gpu_hotplug;
u32 pwm_freq;
int gpu_lvds_use_spread_spectrum_clock;
bool gpu_lvds_use_spread_spectrum_clock;
struct i915_gpu_controller_info gfx;
int pci_mmio_size;
};