File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ void draw_line(agg::rasterizer& ras,
58
58
enum {
59
59
VGA_MODE_640_480,
60
60
VGA_MODE_800_600,
61
- VGA_MODE_1024_768
61
+ VGA_MODE_1024_768,
62
+ VGA_MODE_1920_1080
62
63
};
63
64
64
65
static void vga_clkgen_write (int cmd, int data)
@@ -87,11 +88,11 @@ static void vga_set_mode(int mode)
87
88
fb_hres_write (640 );
88
89
fb_hsync_start_write (656 );
89
90
fb_hsync_end_write (752 );
90
- fb_hscan_write (799 );
91
+ fb_hscan_write (800 );
91
92
fb_vres_write (480 );
92
93
fb_vsync_start_write (492 );
93
94
fb_vsync_end_write (494 );
94
- fb_vscan_write (524 );
95
+ fb_vscan_write (525 );
95
96
break ;
96
97
case VGA_MODE_800_600: // Pixel clock: 50MHz
97
98
vga_hres = 800 ;
@@ -121,6 +122,20 @@ static void vga_set_mode(int mode)
121
122
fb_vsync_end_write (778 );
122
123
fb_vscan_write (807 );
123
124
break ;
125
+ case VGA_MODE_1920_1080: // Pixel clock: 148MHz
126
+ vga_hres = 1920 ;
127
+ vga_vres = 1080 ;
128
+ clock_m = 74 ;
129
+ clock_d = 25 ;
130
+ fb_hres_write (1920 );
131
+ fb_hsync_start_write (2008 );
132
+ fb_hsync_end_write (2052 );
133
+ fb_hscan_write (2200 );
134
+ fb_vres_write (1080 );
135
+ fb_vsync_start_write (1084 );
136
+ fb_vsync_end_write (1089 );
137
+ fb_vscan_write (1125 );
138
+ break ;
124
139
}
125
140
fb_length_write (vga_hres*vga_vres*4 );
126
141
You can’t perform that action at this time.
0 commit comments