aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console/fbcon.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2005-11-09 00:39:12 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:34 -0500
commitdbcbfe1ea41e404d960a06fa2faf7da568909f33 (patch)
tree757dccdb6e1c518392b7ee973641969b6130bf11 /drivers/video/console/fbcon.c
parent6cc50e1c5b57180fd37a31282000f43859b0fe73 (diff)
[PATCH] fbcon: Console Rotation - Add support for 90-degree console rotation
Add support for 90-degree (clockwise) rotation of the console. To activate, boot with: fbcon=rotate:1 Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/console/fbcon.c')
-rw-r--r--drivers/video/console/fbcon.c13
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
211static 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
210static inline void fbcon_set_rotation(struct fb_info *info, struct display *p) 222static 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
217static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info) 230static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info)
218{ 231{