27 #include <linux/i2c.h>
33 #include <asm/types.h>
34 #include <asm/setup.h>
35 #include <asm/memory.h>
37 #include <mach/hardware.h>
53 #define GPIO_MMC1_CARD_DETECT mfp_to_gpio(MFP_PIN_GPIO15)
120 static struct resource smc91x_resources[] = {
141 .num_resources =
ARRAY_SIZE(smc91x_resources),
142 .resource = smc91x_resources,
144 .platform_data = &littleton_smc91x_info,
148 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
181 .
modes = tpo_tdo24mtea1_modes,
186 static void littleton_init_lcd(
void)
191 static inline void littleton_init_lcd(
void) {};
194 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
207 .modalias =
"tdo24m",
208 .max_speed_hz = 1000000,
211 .controller_data= &littleton_tdo24m_chip,
215 static void __init littleton_init_spi(
void)
221 static inline void littleton_init_spi(
void) {}
224 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
225 static unsigned int littleton_matrix_key_map[] = {
227 KEY(1, 3,
KEY_0),
KEY(0, 0,
KEY_1),
KEY(1, 0,
KEY_2),
KEY(2, 0,
KEY_3),
228 KEY(0, 1,
KEY_4),
KEY(1, 1,
KEY_5),
KEY(2, 1,
KEY_6),
KEY(0, 2,
KEY_7),
254 .matrix_key_cols = 5,
255 .matrix_key_map = littleton_matrix_key_map,
256 .matrix_key_map_size =
ARRAY_SIZE(littleton_matrix_key_map),
262 .debounce_interval = 30,
264 static void __init littleton_init_keypad(
void)
269 static inline void littleton_init_keypad(
void) {}
272 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
281 static void __init littleton_init_mmc(
void)
286 static inline void littleton_init_mmc(
void) {}
289 #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
292 .
name =
"Bootloader",
304 .name =
"Filesystem",
309 .name =
"MassStorage",
329 .parts[0] = littleton_nand_partitions,
330 .nr_parts[0] =
ARRAY_SIZE(littleton_nand_partitions),
333 static void __init littleton_init_nand(
void)
338 static inline void littleton_init_nand(
void) {}
341 #if defined(CONFIG_I2C_PXA) || defined(CONFIG_I2C_PXA_MODULE)
342 static struct led_info littleton_da9034_leds[] = {
344 .
name =
"littleton:keypad1",
348 .name =
"littleton:keypad2",
352 .name =
"littleton:vibra",
364 .
name =
"da903x-led",
366 .platform_data = &littleton_da9034_leds[0],
368 .
name =
"da903x-led",
370 .platform_data = &littleton_da9034_leds[1],
372 .
name =
"da903x-led",
374 .platform_data = &littleton_da9034_leds[2],
376 .
name =
"da903x-backlight",
379 .name =
"da9034-touch",
381 .platform_data = &littleton_da9034_touch,
387 .subdevs = littleton_da9034_subdevs,
398 .platform_data = &littleton_da9034_info,
404 .platform_data = &littleton_max7320_info,
408 static void __init littleton_init_i2c(
void)
414 static inline void littleton_init_i2c(
void) {}
417 static void __init littleton_init(
void)
432 littleton_init_spi();
433 littleton_init_i2c();
434 littleton_init_mmc();
435 littleton_init_lcd();
436 littleton_init_keypad();
437 littleton_init_nand();
440 MACHINE_START(LITTLETON,
"Marvell Form Factor Development Platform (aka Littleton)")
441 .atag_offset = 0x100,
447 .init_machine = littleton_init,