diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-10-04 13:47:44 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-18 01:01:23 +0200 |
commit | 09cb945ad762e9a7f258287942918dd4a3badae4 (patch) | |
tree | 49e87aaf6f424e3d924560ca72d2c0a67cdecf74 /include/linux/glamofb.h | |
parent | e40152ee1e1c7a63f4777791863215e3faa37a86 (diff) |
Add glamo driver.
Diffstat (limited to 'include/linux/glamofb.h')
-rw-r--r-- | include/linux/glamofb.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/glamofb.h b/include/linux/glamofb.h new file mode 100644 index 00000000000..5f9fab5a487 --- /dev/null +++ b/include/linux/glamofb.h @@ -0,0 +1,35 @@ +#ifndef _LINUX_GLAMOFB_H +#define _LINUX_GLAMOFB_H + +#include <linux/fb.h> + +#ifdef __KERNEL__ + +struct glamo_core; +struct glamofb_handle; + +struct glamo_fb_platform_data { + int width, height; + + int num_modes; + struct fb_videomode *modes; + + struct glamo_core *core; +}; + +int glamofb_cmd_mode(struct glamofb_handle *gfb, int on); +int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val); + +#ifdef CONFIG_MFD_GLAMO +void glamo_lcm_reset(struct platform_device *pdev, int level); +#else +#define glamo_lcm_reset(...) do {} while (0) +#endif + +#endif + +#define GLAMOFB_ENGINE_ENABLE _IOW('F', 0x1, __u32) +#define GLAMOFB_ENGINE_DISABLE _IOW('F', 0x2, __u32) +#define GLAMOFB_ENGINE_RESET _IOW('F', 0x3, __u32) + +#endif |