Skip to content

Commit

Permalink
[PATCH] fbcon: Console Rotation - Add support for 180-degree console …
Browse files Browse the repository at this point in the history
…rotation

Add support for 180-degree (upside down) rotation of the console.  To
activate, boot with:

fbcon=rotate:2

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Nov 9, 2005
1 parent dbcbfe1 commit 33ee829
Show file tree
Hide file tree
Showing 4 changed files with 459 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/console/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ifeq ($(CONFIG_FB_TILEBLITTING),y)
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += tileblit.o
endif
ifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y)
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o fbcon_cw.o
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o fbcon_cw.o fbcon_ud.o
endif

obj-$(CONFIG_FB_STI) += sticore.o font.o
Expand Down
3 changes: 3 additions & 0 deletions drivers/video/console/fbcon_rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void fbcon_set_rotate(struct fbcon_ops *ops)
case FB_ROTATE_CW:
fbcon_rotate_cw(ops);
break;
case FB_ROTATE_UD:
fbcon_rotate_ud(ops);
break;
}
}
EXPORT_SYMBOL(fbcon_set_rotate);
Expand Down
1 change: 1 addition & 0 deletions drivers/video/console/fbcon_rotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height)
}

extern void fbcon_rotate_cw(struct fbcon_ops *ops);
extern void fbcon_rotate_ud(struct fbcon_ops *ops);
#endif
Loading

0 comments on commit 33ee829

Please sign in to comment.