JBT6k74 work for KMS
[kernel.git] / include / linux / jbt6k74.h
1 #ifndef __JBT6K74_H__
2 #define __JBT6K74_H__
3
4 #include <linux/spi/spi.h>
5
6 enum jbt_resolution {
7         JBT_RESOLUTION_VGA,
8         JBT_RESOLUTION_QVGA,
9 };
10
11 enum jbt_power_mode {
12         JBT_POWER_MODE_OFF,
13         JBT_POWER_MODE_STANDBY,
14         JBT_POWER_MODE_NORMAL,
15 };
16
17 extern void jbt6k74_setpower(enum jbt_power_mode new_power);
18 extern int jbt6k74_prepare_resolutionchange(enum jbt_resolution new_resolution);
19 extern int jbt6k74_finish_resolutionchange(enum jbt_resolution new_resolution);
20
21
22 /*
23  *  struct jbt6k74_platform_data - Platform data for jbt6k74 driver
24  *  @probe_completed: Callback to be called when the driver has been
25  *  successfully probed.
26  *  @enable_pixel_clock: Callback to enable or disable the pixelclock of the
27  *  gpu.
28  *  @gpio_reset: Reset gpio pin number.
29  */
30 struct jbt6k74_platform_data {
31         void (*probe_completed)(struct device *dev);
32
33         int gpio_reset;
34 };
35
36 #endif