for vga support

This commit is contained in:
Ronald G. Minnich 2003-09-22 16:11:03 +00:00
commit be71a4a7a1
2 changed files with 30 additions and 1 deletions

View file

@ -50,3 +50,32 @@ CS_WRITE($0xfb, $FBREG) // VGA enable
#endif
#if VIDEO_CONSOLE
/*
* by Steve M. Gehlbach, Ph.D.
* steve @ kesa . com
*
* 9/7/03 smg
* minor chipset settings for vga
* more work needed for init, since reboot
* from linux has problems (hdwr reset okay)
*
*/
// set shadow ram to award settings
CS_WRITE($0x61, $0x2a)
CS_WRITE($0x62, $0x00)
CS_WRITE($0x63, $0x20)
// turn off GA
CS_WRITE($0x88,$0x00)
// enable vga, fb
CS_WRITE($0xF9,$0x42)
CS_WRITE($0xFB,$0xb0)
#endif

View file

@ -142,11 +142,11 @@ void vga_hardware_fixup(void) {
printk_info("done.\n");
#ifdef VIDEO_SHOW_LOGO
if (!splash_done) {
printk_debug("Setting graphics mode...\n");
vga_set_gmode(); // set graphics mode
#ifdef VIDEO_SHOW_LOGO
//
// the pcx_file is in flash at an address set
// in the config file with PCX_FILE_LOCATION