25 #include <linux/input.h>
29 #include <mach/hardware.h>
31 #include <mach/common.h>
100 #define GPIO_LED1 IMX_GPIO_NR(3, 19)
101 #define GPIO_SWITCH1 IMX_GPIO_NR(3, 18)
102 #define GPIO_SD1CD IMX_GPIO_NR(2, 20)
103 #define GPIO_LCDPWR IMX_GPIO_NR(1, 26)
104 #define GPIO_SPI1_SS0 IMX_GPIO_NR(1, 16)
105 #define GPIO_SPI1_SS1 IMX_GPIO_NR(1, 17)
106 #define GPIO_SPI1_IRQ IMX_GPIO_NR(2, 22)
161 .mode = eukrea_mximxsd_modes,
162 .num_modes =
ARRAY_SIZE(eukrea_mximxsd_modes),
168 static void eukrea_mbimxsd_lcd_power_set(
struct plat_lcd_data *pd,
177 static struct plat_lcd_data eukrea_mbimxsd_lcd_power_data = {
178 .set_power = eukrea_mbimxsd_lcd_power_set,
182 .name =
"platform-lcd",
183 .dev.platform_data = &eukrea_mbimxsd_lcd_power_data,
186 static const struct gpio_led eukrea_mbimxsd_leds[] __initconst = {
189 .default_trigger =
"heartbeat",
196 eukrea_mbimxsd_led_info __initconst = {
197 .leds = eukrea_mbimxsd_leds,
212 eukrea_mbimxsd_button_data __initconst = {
213 .buttons = eukrea_mbimxsd_gpio_buttons,
214 .nbuttons =
ARRAY_SIZE(eukrea_mbimxsd_gpio_buttons),
218 &eukrea_mbimxsd_lcd_powerdev,
242 static struct spi_board_info eukrea_mbimxsd25_spi_board_info[] __initdata = {
245 .max_speed_hz = 20000000,
251 .modalias =
"spidev",
252 .max_speed_hz = 20000000,
261 static const struct spi_imx_master eukrea_mbimxsd25_spi0_data __initconst = {
262 .chipselect = eukrea_mbimxsd25_spi_cs,
263 .num_chipselect =
ARRAY_SIZE(eukrea_mbimxsd25_spi_cs),
309 imx_add_platform_device(
"eukrea_tlv320", 0,
NULL, 0,
NULL, 0);