1 #ifndef _LINUX_GLAMOFB_H
2 #define _LINUX_GLAMOFB_H
4 #include <linux/spi/glamo.h>
14 struct glamofb_platform_data {
17 int left_margin, right_margin;
18 int upper_margin, lower_margin;
19 int hsync_len, vsync_len;
22 struct glamofb_val xres;
23 struct glamofb_val yres;
24 struct glamofb_val bpp;
26 struct glamo_spi_info *spi_info;
27 struct glamo_spigpio_info *spigpio_info;
28 struct glamo_core *glamo;
30 struct platform_device *mmc_dev;
32 /* glamo mmc platform specific info */
33 int (*glamo_can_set_mci_power)(void);
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);
41 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
42 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
44 #ifdef CONFIG_MFD_GLAMO
45 void glamo_lcm_reset(int level);
47 #define glamo_lcm_reset(...) do {} while (0)