Commit ed8c0e99 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] fbcon: Console Rotation - Add support for 270-degree rotation

Add support for 270-degree (counterclockwise) rotation of the console.  To
activate, boot with:

fbcon=rotate:3
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 33ee8297
...@@ -32,7 +32,8 @@ ifeq ($(CONFIG_FB_TILEBLITTING),y) ...@@ -32,7 +32,8 @@ ifeq ($(CONFIG_FB_TILEBLITTING),y)
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += tileblit.o obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += tileblit.o
endif endif
ifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y) ifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y)
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o fbcon_cw.o fbcon_ud.o obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o fbcon_cw.o fbcon_ud.o \
fbcon_ccw.o
endif endif
obj-$(CONFIG_FB_STI) += sticore.o font.o obj-$(CONFIG_FB_STI) += sticore.o font.o
......
This diff is collapsed.
...@@ -105,6 +105,9 @@ void fbcon_set_rotate(struct fbcon_ops *ops) ...@@ -105,6 +105,9 @@ void fbcon_set_rotate(struct fbcon_ops *ops)
case FB_ROTATE_UD: case FB_ROTATE_UD:
fbcon_rotate_ud(ops); fbcon_rotate_ud(ops);
break; break;
case FB_ROTATE_CCW:
fbcon_rotate_ccw(ops);
break;
} }
} }
EXPORT_SYMBOL(fbcon_set_rotate); EXPORT_SYMBOL(fbcon_set_rotate);
......
...@@ -101,4 +101,5 @@ static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height) ...@@ -101,4 +101,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_cw(struct fbcon_ops *ops);
extern void fbcon_rotate_ud(struct fbcon_ops *ops); extern void fbcon_rotate_ud(struct fbcon_ops *ops);
extern void fbcon_rotate_ccw(struct fbcon_ops *ops);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment