blob: bb1a398adf781857dacd18b188cb0c6932926f9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef _LINUX_GLAMOFB_H
#define _LINUX_GLAMOFB_H
#include <linux/spi/glamo.h>
#include <linux/resume-dependency.h>
struct glamofb_val {
unsigned int defval;
unsigned int min;
unsigned int max;
};
struct glamo_core;
struct glamofb_platform_data {
int width, height;
int pixclock;
int left_margin, right_margin;
int upper_margin, lower_margin;
int hsync_len, vsync_len;
int fb_mem_size;
struct glamofb_val xres;
struct glamofb_val yres;
struct glamofb_val bpp;
struct glamo_spi_info *spi_info;
struct glamo_spigpio_info *spigpio_info;
struct glamo_core *glamo;
/* glamo mmc platform specific info */
void (*glamo_set_mci_power)(unsigned char power_mode,
unsigned short vdd);
int (*glamo_irq_is_wired)(void);
void (*mci_suspending)(struct platform_device *dev);
int (*mci_all_dependencies_resumed)(struct platform_device *dev);
};
int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
void glamo_lcm_reset(int level);
extern void
glamo_register_resume_dependency(struct resume_dependency * resume_dependency);
#endif
|