Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/29925 )
Change subject: nb/intel/gm45: Make fetching the blc_pwm freq global ......................................................................
nb/intel/gm45: Make fetching the blc_pwm freq global
This can be used to select the proper VBT.
Change-Id: Id3f6ba3ae31a5ab47f44d207678c1c4a6a43b7ec Signed-off-by: Arthur Heymans arthur@aheymans.xyz Reviewed-on: https://review.coreboot.org/c/29925 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Nico Huber nico.h@gmx.de --- M src/northbridge/intel/gm45/gm45.h M src/northbridge/intel/gm45/gma.c 2 files changed, 2 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Nico Huber: Looks good to me, approved
diff --git a/src/northbridge/intel/gm45/gm45.h b/src/northbridge/intel/gm45/gm45.h index 5373e5e..086afd5 100644 --- a/src/northbridge/intel/gm45/gm45.h +++ b/src/northbridge/intel/gm45/gm45.h @@ -442,6 +442,7 @@ int pwm_freq; /* In Hz */ }; int get_blc_values(const struct blc_pwm_t **entries); +u16 get_blc_pwm_freq_value(const char *edid_ascii_string);
#if ENV_RAMSTAGE && !defined(__SIMPLE_DEVICE__) diff --git a/src/northbridge/intel/gm45/gma.c b/src/northbridge/intel/gm45/gma.c index 64b6a57..8acec29 100644 --- a/src/northbridge/intel/gm45/gma.c +++ b/src/northbridge/intel/gm45/gma.c @@ -668,7 +668,7 @@ return (blc_mod << 16) | blc_mod; }
-static u16 get_blc_pwm_freq_value(const char *edid_ascii_string) +u16 get_blc_pwm_freq_value(const char *edid_ascii_string) { static u16 blc_pwm_freq; const struct blc_pwm_t *blc_pwm;