[s3c24xx] fix glamo modesetting.
[openwrt-10.03/.git] / target / linux / s3c24xx / files-2.6.30 / include / linux / glamofb.h
1 #ifndef _LINUX_GLAMOFB_H
2 #define _LINUX_GLAMOFB_H
3
4 #include <linux/spi/glamo.h>
5 #include <linux/fb.h>
6
7 struct glamo_core;
8
9 struct glamofb_platform_data {
10         int width, height;
11         int fb_mem_size;
12
13         int num_modes;
14         struct fb_videomode *modes;
15
16         struct glamo_spi_info *spi_info;
17         struct glamo_spigpio_info *spigpio_info;
18         struct glamo_core *glamo;
19
20         struct platform_device *mmc_dev;
21
22         /* glamo mmc platform specific info */
23         int             (*glamo_can_set_mci_power)(void);
24
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);
29 };
30
31 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
32 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
33
34 #ifdef CONFIG_MFD_GLAMO
35 void glamo_lcm_reset(int level);
36 #else
37 #define glamo_lcm_reset(...) do {} while (0)
38 #endif
39
40 #endif