linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode
@ 2023-04-22 21:24 Helge Deller
  2023-05-12  7:44 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Helge Deller @ 2023-04-22 21:24 UTC (permalink / raw)
  To: linux-fbdev, dri-devel

Add typical resolution for Full-HD monitors.

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/drivers/video/fbdev/core/modedb.c b/drivers/video/fbdev/core/modedb.c
index 6473e0dfe146..90915a4caac6 100644
--- a/drivers/video/fbdev/core/modedb.c
+++ b/drivers/video/fbdev/core/modedb.c
@@ -257,6 +257,10 @@ static const struct fb_videomode modedb[] = {
 	{ NULL, 72, 480, 300, 33386, 40, 24, 11, 19, 80, 3, 0,
 		FB_VMODE_DOUBLE },

+	/* 1920x1080 @ 60 Hz, 67.3 kHz hsync */
+	{ NULL, 60, 1920, 1080, 6734, 148, 88, 63, 4, 44, 5, 0,
+		FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT },
+
 	/* 1920x1200 @ 60 Hz, 74.5 Khz hsync */
 	{ NULL, 60, 1920, 1200, 5177, 128, 336, 1, 38, 208, 3,
 		FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode
  2023-04-22 21:24 [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode Helge Deller
@ 2023-05-12  7:44 ` Geert Uytterhoeven
  2023-05-12  9:01   ` Helge Deller
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-05-12  7:44 UTC (permalink / raw)
  To: Helge Deller; +Cc: linux-fbdev, dri-devel

Hi Helge,

On Sat, Apr 22, 2023 at 11:27 PM Helge Deller <deller@gmx.de> wrote:
> Add typical resolution for Full-HD monitors.
>
> Signed-off-by: Helge Deller <deller@gmx.de>

> --- a/drivers/video/fbdev/core/modedb.c
> +++ b/drivers/video/fbdev/core/modedb.c
> @@ -257,6 +257,10 @@ static const struct fb_videomode modedb[] = {
>         { NULL, 72, 480, 300, 33386, 40, 24, 11, 19, 80, 3, 0,
>                 FB_VMODE_DOUBLE },
>
> +       /* 1920x1080 @ 60 Hz, 67.3 kHz hsync */
> +       { NULL, 60, 1920, 1080, 6734, 148, 88, 63, 4, 44, 5, 0,
> +               FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT },

This matches [1], except for the "63", which looks like a typo for "36"
(total number of lines should be 1125, not 1152).

> +
>         /* 1920x1200 @ 60 Hz, 74.5 Khz hsync */
>         { NULL, 60, 1920, 1200, 5177, 128, 336, 1, 38, 208, 3,
>                 FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

[1] https://projectf.io/posts/video-timings-vga-720p-1080p/#hd-1920x1080-60-hz

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode
  2023-05-12  7:44 ` Geert Uytterhoeven
@ 2023-05-12  9:01   ` Helge Deller
  0 siblings, 0 replies; 3+ messages in thread
From: Helge Deller @ 2023-05-12  9:01 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-fbdev, dri-devel

On 5/12/23 09:44, Geert Uytterhoeven wrote:
> Hi Helge,
>
> On Sat, Apr 22, 2023 at 11:27 PM Helge Deller <deller@gmx.de> wrote:
>> Add typical resolution for Full-HD monitors.
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>
>> --- a/drivers/video/fbdev/core/modedb.c
>> +++ b/drivers/video/fbdev/core/modedb.c
>> @@ -257,6 +257,10 @@ static const struct fb_videomode modedb[] = {
>>          { NULL, 72, 480, 300, 33386, 40, 24, 11, 19, 80, 3, 0,
>>                  FB_VMODE_DOUBLE },
>>
>> +       /* 1920x1080 @ 60 Hz, 67.3 kHz hsync */
>> +       { NULL, 60, 1920, 1080, 6734, 148, 88, 63, 4, 44, 5, 0,
>> +               FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT },
>
> This matches [1], except for the "63", which looks like a typo for "36"
> (total number of lines should be 1125, not 1152).

Thanks Geert!

I fixed it in the git tree.

Helge

>
>> +
>>          /* 1920x1200 @ 60 Hz, 74.5 Khz hsync */
>>          { NULL, 60, 1920, 1200, 5177, 128, 336, 1, 38, 208, 3,
>>                  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
>
> [1] https://projectf.io/posts/video-timings-vga-720p-1080p/#hd-1920x1080-60-hz
>
> Gr{oetje,eeting}s,
>
>                          Geert
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-12  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-22 21:24 [PATCH] fbdev: modedb: Add a 1920x1080 at 60 Hz video mode Helge Deller
2023-05-12  7:44 ` Geert Uytterhoeven
2023-05-12  9:01   ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).