Hello Arthur Heymans, Matt DeVillier, Thomas Heijligen,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/libgfxinit/+/35715
to look at the new patch set (#2).
Change subject: gma g45: Read CDClk and calculate dot-clock limits ......................................................................
gma g45: Read CDClk and calculate dot-clock limits
Numbers are taken from `intel_cdclk.c` of Linux' i915 driver.
We introduce two new procedures to the `Power_And_Clocks` interface:
o Limit_Dotclocks() limits the dot clocks of all pipe configs according to the maximum supported CDClk. It also reports if CDClk has to be switched for these configs.
o Update_CDClk() performs the CDClk switch if necessary. It may further limit the dot clocks if the switch didn't succeed.
The latter is a no-op for G45, as the CDClk runs at a fixed rate. Dot clocks are limited to 90% of CDClk.
Change-Id: Ie50c0f8f51b3a0a6ed58c6461069c556cc92f51e Signed-off-by: Nico Huber nico.h@gmx.de --- M common/g45/hw-gfx-gma-power_and_clocks.adb M common/g45/hw-gfx-gma-power_and_clocks.ads M common/hw-gfx-gma-config.ads.template M common/hw-gfx-gma-registers.ads 4 files changed, 130 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/15/35715/2