1 #ifndef _LINUX_GLAMOFB_H
2 #define _LINUX_GLAMOFB_H
5 #include <linux/glamo-engine.h>
9 #include <linux/spi/glamo.h>
13 struct glamofb_platform_data {
17 struct fb_videomode *modes;
19 struct glamo_spigpio_info *spigpio_info;
20 struct glamo_core *glamo;
22 /* glamo mmc platform specific info */
23 int (*glamo_can_set_mci_power)(void);
25 /* glamo-mci asking if it should use the slow clock to card */
26 int (*glamo_mci_use_slow)(void);
27 int (*glamo_irq_is_wired)(void);
28 void (*glamo_external_reset)(int);
31 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
32 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
34 #ifdef CONFIG_MFD_GLAMO
35 void glamo_lcm_reset(struct platform_device *pdev, int level);
37 #define glamo_lcm_reset(...) do {} while (0)
42 #define GLAMOFB_ENGINE_ENABLE _IOW('F', 0x1, __u32)
43 #define GLAMOFB_ENGINE_DISABLE _IOW('F', 0x2, __u32)
44 #define GLAMOFB_ENGINE_RESET _IOW('F', 0x3, __u32)