nb/gm45/gma.c: Fix reported Pixel clock
Change-Id: Ie1c360ac29eb30af6f4b5447add467f3c13ba211 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/18180 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
23bb036dcb
commit
1f06028793
|
@ -203,8 +203,8 @@ static void gma_init_lvds(const struct northbridge_intel_gm45_config *info,
|
|||
printk(BIOS_DEBUG, "Pixel N=%d, M1=%d, M2=%d, P1=%d\n",
|
||||
pixel_n, pixel_m1, pixel_m2, pixel_p1);
|
||||
printk(BIOS_DEBUG, "Pixel clock %d kHz\n",
|
||||
BASE_FREQUENCY * (5 * (pixel_m1 + 2) + (pixel_m2 + 2) /
|
||||
(pixel_n + 2) / (pixel_p1 * pixel_p2)));
|
||||
BASE_FREQUENCY * (5 * (pixel_m1 + 2) + (pixel_m2 + 2)) /
|
||||
(pixel_n + 2) / (pixel_p1 * pixel_p2));
|
||||
|
||||
write32(mmio + LVDS,
|
||||
(hpolarity << 20) | (vpolarity << 21)
|
||||
|
@ -479,8 +479,8 @@ static void gma_init_vga(const struct northbridge_intel_gm45_config *info,
|
|||
printk(BIOS_SPEW, "Pixel N=%d, M1=%d, M2=%d, P1=%d, P2=%d\n",
|
||||
pixel_n, pixel_m1, pixel_m2, pixel_p1, pixel_p2);
|
||||
printk(BIOS_SPEW, "Pixel clock %d kHz\n",
|
||||
BASE_FREQUENCY * (5 * (pixel_m1 + 2) + (pixel_m2 + 2) /
|
||||
(pixel_n + 2) / (pixel_p1 * pixel_p2)));
|
||||
BASE_FREQUENCY * (5 * (pixel_m1 + 2) + (pixel_m2 + 2)) /
|
||||
(pixel_n + 2) / (pixel_p1 * pixel_p2));
|
||||
|
||||
mdelay(1);
|
||||
write32(mmio + FP0(0), (pixel_n << 16)
|
||||
|
|
Loading…
Reference in New Issue