22 #include <linux/types.h>
29 #include <linux/input.h>
30 #include <linux/i2c.h>
39 #include <mach/hardware.h>
40 #include <mach/common.h>
82 #define GPIO_LED1 IMX_GPIO_NR(3, 30)
83 #define GPIO_SWITCH1 IMX_GPIO_NR(3, 31)
84 #define GPIO_LCDRST IMX_GPIO_NR(3, 13)
85 #define GPIO_LCDBL IMX_GPIO_NR(3, 4)
87 static void eukrea_mbimxsd51_lcd_power_set(
struct plat_lcd_data *pd,
96 static struct plat_lcd_data eukrea_mbimxsd51_lcd_power_data = {
97 .set_power = eukrea_mbimxsd51_lcd_power_set,
101 .name =
"platform-lcd",
102 .dev.platform_data = &eukrea_mbimxsd51_lcd_power_data,
105 static void eukrea_mbimxsd51_bl_set_intensity(
int intensity)
114 .name =
"eukrea_mbimxsd51-bl",
115 .max_intensity = 0xff,
116 .default_intensity = 0xff,
117 .set_bl_intensity = eukrea_mbimxsd51_bl_set_intensity,
121 .name =
"generic-bl",
124 .platform_data = &eukrea_mbimxsd51_bl_info,
131 .default_trigger =
"heartbeat",
138 eukrea_mbimxsd51_led_info __initconst = {
139 .leds = eukrea_mbimxsd51_leds,
140 .num_leds =
ARRAY_SIZE(eukrea_mbimxsd51_leds),
154 eukrea_mbimxsd51_button_data __initconst = {
155 .buttons = eukrea_mbimxsd51_gpio_buttons,
156 .nbuttons =
ARRAY_SIZE(eukrea_mbimxsd51_gpio_buttons),
174 static int screen_type;
176 static int __init eukrea_mbimxsd51_screen_type(
char *
options)
178 if (!
strcmp(options,
"dvi"))
180 else if (!
strcmp(options,
"tft"))
185 __setup(
"screen_type=", eukrea_mbimxsd51_screen_type);
231 imx_add_platform_device(
"eukrea_tlv320", 0,
NULL, 0,
NULL, 0);