17 #include <linux/input.h>
49 static unsigned long vpac270_pin_config[]
__initdata = {
152 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
156 .offset = 0x00000000,
164 .parts = vpac270_nor_partitions,
165 .nr_parts =
ARRAY_SIZE(vpac270_nor_partitions)
169 static struct resource vpac270_flash_resource = {
176 .
name =
"physmap-flash",
178 .resource = &vpac270_flash_resource,
181 .platform_data = vpac270_flash_data,
184 static void __init vpac270_nor_init(
void)
189 static inline void vpac270_nor_init(
void) {}
195 #if defined(CONFIG_MTD_ONENAND) || defined(CONFIG_MTD_ONENAND_MODULE)
199 .offset = 0x00000000,
205 .
parts = vpac270_onenand_partitions,
206 .nr_parts =
ARRAY_SIZE(vpac270_onenand_partitions),
209 static struct resource vpac270_onenand_resources[] = {
218 .
name =
"onenand-flash",
220 .resource = vpac270_onenand_resources,
221 .num_resources =
ARRAY_SIZE(vpac270_onenand_resources),
223 .platform_data = &vpac270_onenand_info,
227 static void __init vpac270_onenand_init(
void)
232 static void __init vpac270_onenand_init(
void) {}
238 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
244 .detect_delay_ms = 200,
247 static void __init vpac270_mmc_init(
void)
252 static inline void vpac270_mmc_init(
void) {}
258 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
264 .
buttons = vpac270_pxa_buttons,
272 .platform_data = &vpac270_pxa_keys_data,
276 static void __init vpac270_keys_init(
void)
281 static inline void vpac270_keys_init(
void) {}
287 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
288 struct gpio_led vpac270_gpio_leds[] = {
290 .
name =
"vpac270:orange:user",
291 .default_trigger =
"none",
298 .
leds = vpac270_gpio_leds,
306 .platform_data = &vpac270_gpio_led_info,
310 static void __init vpac270_leds_init(
void)
315 static inline void vpac270_leds_init(
void) {}
321 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
322 static int vpac270_ohci_init(
struct device *
dev)
332 .init = vpac270_ohci_init,
335 static void __init vpac270_uhc_init(
void)
340 static inline void vpac270_uhc_init(
void) {}
346 #if defined(CONFIG_USB_PXA27X)||defined(CONFIG_USB_PXA27X_MODULE)
356 .platform_data = &vpac270_gpio_vbus_info,
360 static void vpac270_udc_command(
int cmd)
369 .udc_command = vpac270_udc_command,
373 static void __init vpac270_udc_init(
void)
379 static inline void vpac270_udc_init(
void) {}
385 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
386 static struct resource vpac270_dm9000_resources[] = {
411 .num_resources =
ARRAY_SIZE(vpac270_dm9000_resources),
412 .resource = vpac270_dm9000_resources,
414 .platform_data = &vpac270_dm9000_platdata,
418 static void __init vpac270_eth_init(
void)
423 static inline void vpac270_eth_init(
void) {}
429 #if defined(CONFIG_TOUCHSCREEN_UCB1400) || \
430 defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE)
440 .
name =
"ucb1400_core",
443 .platform_data = &vpac270_ucb1400_pdata,
447 static void __init vpac270_ts_init(
void)
453 static inline void vpac270_ts_init(
void) {}
459 #if defined(CONFIG_RTC_DRV_DS1307) || defined(CONFIG_RTC_DRV_DS1307_MODULE)
466 static void __init vpac270_rtc_init(
void)
471 static inline void vpac270_rtc_init(
void) {}
477 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
547 .
modes = vpac270_lcd_modes,
557 static void __init vpac270_lcd_init(
void)
563 pr_err(
"Requesting BKL-ON GPIO failed!\n");
569 pr_err(
"Setting BKL-ON GPIO direction failed!\n");
583 static inline void vpac270_lcd_init(
void) {}
589 #if defined(CONFIG_PATA_PXA) || defined(CONFIG_PATA_PXA_MODULE)
596 static struct resource vpac270_ide_resources[] = {
621 .num_resources =
ARRAY_SIZE(vpac270_ide_resources),
622 .resource = vpac270_ide_resources,
624 .platform_data = &vpac270_pata_pdata,
625 .coherent_dma_mask = 0xffffffff,
629 static void __init vpac270_ide_init(
void)
634 static inline void vpac270_ide_init(
void) {}
640 #if defined(CONFIG_REGULATOR_MAX1586) || \
641 defined(CONFIG_REGULATOR_MAX1586_MODULE)
648 .name =
"vcc_core range",
654 .consumer_supplies = vpac270_max1587a_consumers,
655 .num_consumer_supplies =
ARRAY_SIZE(vpac270_max1587a_consumers),
662 .platform_data = &vpac270_max1587a_v3_info,
667 .
subdevs = vpac270_max1587a_subdevs,
668 .num_subdevs =
ARRAY_SIZE(vpac270_max1587a_subdevs),
672 static struct i2c_board_info __initdata vpac270_pi2c_board_info[] = {
675 .platform_data = &vpac270_max1587a_info,
679 static void __init vpac270_pmic_init(
void)
684 static inline void vpac270_pmic_init(
void) {}
691 static void __init vpac270_init(
void)
705 vpac270_onenand_init();
717 .atag_offset = 0x100,
723 .init_machine = vpac270_init,