diff options
Diffstat (limited to 'drivers/video/console/fbcon.c')
-rw-r--r-- | drivers/video/console/fbcon.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 26935e231a1d..e829ba18e0a5 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -207,12 +207,25 @@ static irqreturn_t fb_vbl_detect(int irq, void *dummy, struct pt_regs *fp) | |||
207 | } | 207 | } |
208 | #endif | 208 | #endif |
209 | 209 | ||
210 | #ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION | ||
211 | static inline void fbcon_set_rotation(struct fb_info *info, struct display *p) | ||
212 | { | ||
213 | struct fbcon_ops *ops = info->fbcon_par; | ||
214 | |||
215 | if (!(info->flags & FBINFO_MISC_TILEBLITTING) && | ||
216 | p->con_rotate < 4) | ||
217 | ops->rotate = p->con_rotate; | ||
218 | else | ||
219 | ops->rotate = 0; | ||
220 | } | ||
221 | #else | ||
210 | static inline void fbcon_set_rotation(struct fb_info *info, struct display *p) | 222 | static inline void fbcon_set_rotation(struct fb_info *info, struct display *p) |
211 | { | 223 | { |
212 | struct fbcon_ops *ops = info->fbcon_par; | 224 | struct fbcon_ops *ops = info->fbcon_par; |
213 | 225 | ||
214 | ops->rotate = FB_ROTATE_UR; | 226 | ops->rotate = FB_ROTATE_UR; |
215 | } | 227 | } |
228 | #endif /* CONFIG_FRAMEBUFFER_CONSOLE_ROTATION */ | ||
216 | 229 | ||
217 | static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info) | 230 | static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info) |
218 | { | 231 | { |