diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/au1100fb.c | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index 80a81eccad36..832e4613673a 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c | |||
| @@ -115,6 +115,52 @@ static int nocursor = 0; | |||
| 115 | module_param(nocursor, int, 0644); | 115 | module_param(nocursor, int, 0644); |
| 116 | MODULE_PARM_DESC(nocursor, "cursor enable/disable"); | 116 | MODULE_PARM_DESC(nocursor, "cursor enable/disable"); |
| 117 | 117 | ||
| 118 | /* fb_blank | ||
| 119 | * Blank the screen. Depending on the mode, the screen will be | ||
| 120 | * activated with the backlight color, or desactivated | ||
| 121 | */ | ||
| 122 | static int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi) | ||
| 123 | { | ||
| 124 | struct au1100fb_device *fbdev = to_au1100fb_device(fbi); | ||
| 125 | |||
| 126 | print_dbg("fb_blank %d %p", blank_mode, fbi); | ||
| 127 | |||
| 128 | switch (blank_mode) { | ||
| 129 | |||
| 130 | case VESA_NO_BLANKING: | ||
| 131 | /* Turn on panel */ | ||
| 132 | fbdev->regs->lcd_control |= LCD_CONTROL_GO; | ||
| 133 | #ifdef CONFIG_MIPS_PB1100 | ||
| 134 | if (drv_info.panel_idx == 1) { | ||
| 135 | au_writew(au_readw(PB1100_G_CONTROL) | ||
| 136 | | (PB1100_G_CONTROL_BL | PB1100_G_CONTROL_VDD), | ||
| 137 | PB1100_G_CONTROL); | ||
| 138 | } | ||
| 139 | #endif | ||
| 140 | au_sync(); | ||
| 141 | break; | ||
| 142 | |||
| 143 | case VESA_VSYNC_SUSPEND: | ||
| 144 | case VESA_HSYNC_SUSPEND: | ||
| 145 | case VESA_POWERDOWN: | ||
| 146 | /* Turn off panel */ | ||
| 147 | fbdev->regs->lcd_control &= ~LCD_CONTROL_GO; | ||
| 148 | #ifdef CONFIG_MIPS_PB1100 | ||
| 149 | if (drv_info.panel_idx == 1) { | ||
| 150 | au_writew(au_readw(PB1100_G_CONTROL) | ||
| 151 | & ~(PB1100_G_CONTROL_BL | PB1100_G_CONTROL_VDD), | ||
| 152 | PB1100_G_CONTROL); | ||
| 153 | } | ||
| 154 | #endif | ||
| 155 | au_sync(); | ||
| 156 | break; | ||
| 157 | default: | ||
| 158 | break; | ||
| 159 | |||
| 160 | } | ||
| 161 | return 0; | ||
| 162 | } | ||
| 163 | |||
| 118 | /* | 164 | /* |
| 119 | * Set hardware with var settings. This will enable the controller with a specific | 165 | * Set hardware with var settings. This will enable the controller with a specific |
| 120 | * mode, normally validated with the fb_check_var method | 166 | * mode, normally validated with the fb_check_var method |
| @@ -272,52 +318,6 @@ int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned | |||
| 272 | return 0; | 318 | return 0; |
| 273 | } | 319 | } |
| 274 | 320 | ||
| 275 | /* fb_blank | ||
| 276 | * Blank the screen. Depending on the mode, the screen will be | ||
| 277 | * activated with the backlight color, or desactivated | ||
| 278 | */ | ||
| 279 | int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi) | ||
| 280 | { | ||
| 281 | struct au1100fb_device *fbdev = to_au1100fb_device(fbi); | ||
| 282 | |||
| 283 | print_dbg("fb_blank %d %p", blank_mode, fbi); | ||
| 284 | |||
| 285 | switch (blank_mode) { | ||
| 286 | |||
| 287 | case VESA_NO_BLANKING: | ||
| 288 | /* Turn on panel */ | ||
| 289 | fbdev->regs->lcd_control |= LCD_CONTROL_GO; | ||
| 290 | #ifdef CONFIG_MIPS_PB1100 | ||
| 291 | if (drv_info.panel_idx == 1) { | ||
| 292 | au_writew(au_readw(PB1100_G_CONTROL) | ||
| 293 | | (PB1100_G_CONTROL_BL | PB1100_G_CONTROL_VDD), | ||
| 294 | PB1100_G_CONTROL); | ||
| 295 | } | ||
| 296 | #endif | ||
| 297 | au_sync(); | ||
| 298 | break; | ||
| 299 | |||
| 300 | case VESA_VSYNC_SUSPEND: | ||
| 301 | case VESA_HSYNC_SUSPEND: | ||
| 302 | case VESA_POWERDOWN: | ||
| 303 | /* Turn off panel */ | ||
| 304 | fbdev->regs->lcd_control &= ~LCD_CONTROL_GO; | ||
| 305 | #ifdef CONFIG_MIPS_PB1100 | ||
| 306 | if (drv_info.panel_idx == 1) { | ||
| 307 | au_writew(au_readw(PB1100_G_CONTROL) | ||
| 308 | & ~(PB1100_G_CONTROL_BL | PB1100_G_CONTROL_VDD), | ||
| 309 | PB1100_G_CONTROL); | ||
| 310 | } | ||
| 311 | #endif | ||
| 312 | au_sync(); | ||
| 313 | break; | ||
| 314 | default: | ||
| 315 | break; | ||
| 316 | |||
| 317 | } | ||
| 318 | return 0; | ||
| 319 | } | ||
| 320 | |||
| 321 | /* fb_pan_display | 321 | /* fb_pan_display |
| 322 | * Pan display in x and/or y as specified | 322 | * Pan display in x and/or y as specified |
| 323 | */ | 323 | */ |
