32 #include <mach/common.h>
34 #include <mach/hardware.h>
38 static const int eukrea_mbimx27_pins[]
__initconst = {
50 #if !defined(MACH_EUKREA_CPUIMX27_USEUART4)
92 #if defined(CONFIG_SND_SOC_EUKREA_TLV320) \
93 || defined(CONFIG_SND_SOC_EUKREA_TLV320_MODULE)
101 static const uint32_t eukrea_mbimx27_keymap[] = {
110 .keymap = eukrea_mbimx27_keymap,
111 .keymap_size =
ARRAY_SIZE(eukrea_mbimx27_keymap),
114 static const struct gpio_led eukrea_mbimx27_gpio_leds[] __initconst = {
117 .default_trigger =
"heartbeat",
123 .default_trigger =
"none",
130 eukrea_mbimx27_gpio_led_info __initconst = {
131 .leds = eukrea_mbimx27_gpio_leds,
132 .num_leds =
ARRAY_SIZE(eukrea_mbimx27_gpio_leds),
188 .mode = eukrea_mbimx27_modes,
189 .num_modes =
ARRAY_SIZE(eukrea_mbimx27_modes),
196 static void eukrea_mbimx27_bl_set_intensity(
int intensity)
205 .name =
"eukrea_mbimx27-bl",
206 .max_intensity = 0xff,
207 .default_intensity = 0xff,
208 .set_bl_intensity = eukrea_mbimx27_bl_set_intensity,
212 .name =
"generic-bl",
215 .platform_data = &eukrea_mbimx27_bl_info,
219 static void eukrea_mbimx27_lcd_power_set(
struct plat_lcd_data *pd,
228 static struct plat_lcd_data eukrea_mbimx27_lcd_power_data = {
229 .set_power = eukrea_mbimx27_lcd_power_set,
233 .name =
"platform-lcd",
234 .dev.platform_data = &eukrea_mbimx27_lcd_power_data,
241 #define ADS7846_PENDOWN (GPIO_PORTD | 25)
252 static int ads7846_get_pendown_state(
void)
258 .get_pendown_state = ads7846_get_pendown_state,
263 eukrea_mbimx27_spi_board_info[] __initdata = {
265 .modalias =
"ads7846",
268 .max_speed_hz = 1500000,
270 .platform_data = &ads7846_config,
275 static int eukrea_mbimx27_spi_cs[] = {
GPIO_PORTD | 28};
277 static const struct spi_imx_master eukrea_mbimx27_spi0_data __initconst = {
278 .chipselect = eukrea_mbimx27_spi_cs,
279 .num_chipselect =
ARRAY_SIZE(eukrea_mbimx27_spi_cs),
289 .dat3_card_detect = 1,
310 #if !defined(MACH_EUKREA_CPUIMX27_USEUART4)
322 #if defined(CONFIG_TOUCHSCREEN_ADS7846) \
323 || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
351 imx_add_platform_device(
"eukrea_tlv320", 0,
NULL, 0,
NULL, 0);