16 #include <linux/module.h>
17 #include <linux/kernel.h>
49 .name =
"wm9713-codec",
53 static void __init zylonite_init_wm9713_audio(
void)
58 static struct resource smc91x_resources[] = {
80 .resource = smc91x_resources,
82 .platform_data = &zylonite_smc91x_info,
86 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
87 static struct gpio_led zylonite_debug_leds[] = {
89 .
name =
"zylonite:yellow:1",
90 .default_trigger =
"heartbeat",
93 .name =
"zylonite:yellow:2",
94 .default_trigger =
"default-on",
99 .
leds = zylonite_debug_leds,
107 .platform_data = &zylonite_debug_leds_info,
111 static void __init zylonite_init_leds(
void)
119 static inline void zylonite_init_leds(
void) {}
122 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
125 .max_brightness = 100,
126 .dft_brightness = 100,
127 .pwm_period_ns = 10000,
131 .
name =
"pwm-backlight",
134 .platform_data = &zylonite_backlight_data,
201 .
modes = sharp_ls037_modes,
206 static void __init zylonite_init_lcd(
void)
219 zylonite_toshiba_lcd_info.
modes = &toshiba_ltm035a776c_mode;
221 zylonite_toshiba_lcd_info.
modes = &toshiba_ltm04c380k_mode;
226 static inline void zylonite_init_lcd(
void) {}
229 #if defined(CONFIG_MMC)
254 static void __init zylonite_init_mmc(
void)
262 static inline void zylonite_init_mmc(
void) {}
265 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
266 static unsigned int zylonite_matrix_key_map[] = {
268 KEY(0, 0,
KEY_A),
KEY(0, 1,
KEY_B),
KEY(0, 2,
KEY_C),
KEY(0, 5,
KEY_D),
269 KEY(1, 0,
KEY_E),
KEY(1, 1,
KEY_F),
KEY(1, 2,
KEY_G),
KEY(1, 5,
KEY_H),
270 KEY(2, 0,
KEY_I),
KEY(2, 1,
KEY_J),
KEY(2, 2,
KEY_K),
KEY(2, 5,
KEY_L),
271 KEY(3, 0,
KEY_M),
KEY(3, 1,
KEY_N),
KEY(3, 2,
KEY_O),
KEY(3, 5,
KEY_P),
272 KEY(5, 0,
KEY_Q),
KEY(5, 1,
KEY_R),
KEY(5, 2,
KEY_S),
KEY(5, 5,
KEY_T),
273 KEY(6, 0,
KEY_U),
KEY(6, 1,
KEY_V),
KEY(6, 2,
KEY_W),
KEY(6, 5,
KEY_X),
276 KEY(4, 4,
KEY_0),
KEY(1, 3,
KEY_1),
KEY(4, 1,
KEY_2),
KEY(1, 4,
KEY_3),
277 KEY(2, 3,
KEY_4),
KEY(4, 2,
KEY_5),
KEY(2, 4,
KEY_6),
KEY(3, 3,
KEY_7),
311 .matrix_key_cols = 8,
312 .matrix_key_map = zylonite_matrix_key_map,
313 .matrix_key_map_size =
ARRAY_SIZE(zylonite_matrix_key_map),
319 .debounce_interval = 30,
322 static void __init zylonite_init_keypad(
void)
327 static inline void zylonite_init_keypad(
void) {}
330 #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
333 .
name =
"Bootloader",
345 .name =
"Filesystem",
350 .name =
"MassStorage",
370 .parts[0] = zylonite_nand_partitions,
371 .nr_parts[0] =
ARRAY_SIZE(zylonite_nand_partitions),
374 static void __init zylonite_init_nand(
void)
379 static inline void zylonite_init_nand(
void) {}
382 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
389 static void __init zylonite_init_ohci(
void)
394 static inline void zylonite_init_ohci(
void) {}
397 static void __init zylonite_init(
void)
418 zylonite_init_keypad();
419 zylonite_init_nand();
420 zylonite_init_leds();
421 zylonite_init_ohci();
422 zylonite_init_wm9713_audio();
425 MACHINE_START(ZYLONITE,
"PXA3xx Platform Development Kit (aka Zylonite)")
426 .atag_offset = 0x100,
432 .init_machine = zylonite_init,