47d41e6221c9652f1ac01f14fc26b95e4647c0a3
[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
6 struct glamofb_val {
7         unsigned int defval;
8         unsigned int min;
9         unsigned int max;
10 };
11
12 struct glamo_core;
13
14 struct glamofb_platform_data {
15         int width, height;
16         int pixclock;
17         int left_margin, right_margin;
18         int upper_margin, lower_margin;
19         int hsync_len, vsync_len;
20         int fb_mem_size;
21
22         struct glamofb_val xres;
23         struct glamofb_val yres;
24         struct glamofb_val bpp;
25
26         struct glamo_spi_info *spi_info;
27         struct glamo_spigpio_info *spigpio_info;
28         struct glamo_core *glamo;
29
30         struct platform_device *mmc_dev;
31
32         /* glamo mmc platform specific info */
33         int             (*glamo_can_set_mci_power)(void);
34
35         /* glamo-mci asking if it should use the slow clock to card */
36         int             (*glamo_mci_use_slow)(void);
37         int             (*glamo_irq_is_wired)(void);
38         void            (*glamo_external_reset)(int);
39 };
40
41 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
42 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
43
44 #ifdef CONFIG_MFD_GLAMO
45 void glamo_lcm_reset(int level);
46 #else
47 #define glamo_lcm_reset(...) do {} while (0)
48 #endif
49
50 #endif