diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
commit | 24bfb00123e82a2e70bd115277d922438813515b (patch) | |
tree | 27328b8a5718e16d64e2d101f4b7ddcad5930aed /drivers/video/pm2fb.c | |
parent | c6135234550ed89a6fd0e8cb229633967e41d649 (diff) | |
parent | 3f00d3e8fb963968a922d821a9a53b503b687e81 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/video/pm2fb.c')
-rw-r--r-- | drivers/video/pm2fb.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index 42c17efa9fb0..0277ce031e5e 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c | |||
@@ -1034,7 +1034,6 @@ static struct fb_ops pm2fb_ops = { | |||
1034 | .fb_fillrect = cfb_fillrect, | 1034 | .fb_fillrect = cfb_fillrect, |
1035 | .fb_copyarea = cfb_copyarea, | 1035 | .fb_copyarea = cfb_copyarea, |
1036 | .fb_imageblit = cfb_imageblit, | 1036 | .fb_imageblit = cfb_imageblit, |
1037 | .fb_cursor = soft_cursor, | ||
1038 | }; | 1037 | }; |
1039 | 1038 | ||
1040 | /* | 1039 | /* |
@@ -1121,6 +1120,22 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev, | |||
1121 | default_par->mem_control, default_par->boot_address, | 1120 | default_par->mem_control, default_par->boot_address, |
1122 | default_par->mem_config); | 1121 | default_par->mem_config); |
1123 | 1122 | ||
1123 | if(default_par->mem_control == 0 && | ||
1124 | default_par->boot_address == 0x31 && | ||
1125 | default_par->mem_config == 0x259fffff && | ||
1126 | pdev->subsystem_vendor == 0x1048 && | ||
1127 | pdev->subsystem_device == 0x0a31) { | ||
1128 | DPRINTK("subsystem_vendor: %04x, subsystem_device: %04x\n", | ||
1129 | pdev->subsystem_vendor, pdev->subsystem_device); | ||
1130 | DPRINTK("We have not been initialized by VGA BIOS " | ||
1131 | "and are running on an Elsa Winner 2000 Office\n"); | ||
1132 | DPRINTK("Initializing card timings manually...\n"); | ||
1133 | default_par->mem_control=0; | ||
1134 | default_par->boot_address=0x20; | ||
1135 | default_par->mem_config=0xe6002021; | ||
1136 | default_par->memclock=100000; | ||
1137 | } | ||
1138 | |||
1124 | /* Now work out how big lfb is going to be. */ | 1139 | /* Now work out how big lfb is going to be. */ |
1125 | switch(default_par->mem_config & PM2F_MEM_CONFIG_RAM_MASK) { | 1140 | switch(default_par->mem_config & PM2F_MEM_CONFIG_RAM_MASK) { |
1126 | case PM2F_MEM_BANKS_1: | 1141 | case PM2F_MEM_BANKS_1: |