13 #include <linux/module.h>
14 #include <linux/kernel.h>
22 #include <linux/i2c.h>
40 #define GPIO_LCD_RESET (16)
90 #define SAAR_ETH_PHYS (0x14000000)
92 static struct resource smc91x_resources[] = {
112 .num_resources =
ARRAY_SIZE(smc91x_resources),
113 .resource = smc91x_resources,
115 .platform_data = &saar_smc91x_info,
119 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
371 static uint16_t update_framedata[] = {
411 static int pin_requested = 0;
415 if (!pin_requested) {
418 pr_err(
"failed to request gpio for LCD reset\n");
437 err = pxafb_smart_flush(info);
439 pr_err(
"%s: timed out\n", __func__);
442 static void ltm022a97a_update(
struct fb_info *info)
445 pxafb_smart_flush(info);
453 .a0csrd_set_hld = 30,
454 .a0cswr_set_hld = 30,
455 .wr_pulse_width = 30,
456 .rd_pulse_width = 30,
467 .
modes = toshiba_ltm022a97a_modes,
470 .pxafb_lcd_power = ltm022a97a_lcd_power,
471 .smart_update = ltm022a97a_update,
474 static void __init saar_init_lcd(
void)
479 static inline void saar_init_lcd(
void) {}
482 #if defined(CONFIG_I2C_PXA) || defined(CONFIG_I2C_PXA_MODULE)
489 .
name =
"da903x-backlight",
491 .platform_data = &saar_da9034_backlight,
497 .subdevs = saar_da9034_subdevs,
504 .platform_data = &saar_da9034_info,
509 static void __init saar_init_i2c(
void)
515 static inline void saar_init_i2c(
void) {}
518 #if defined(CONFIG_MTD_ONENAND) || defined(CONFIG_MTD_ONENAND_MODULE)
521 .
name =
"bootloader",
541 .name =
"filesystem",
549 .
parts = saar_onenand_partitions,
550 .nr_parts =
ARRAY_SIZE(saar_onenand_partitions),
553 #define SMC_CS0_PHYS_BASE (0x10000000)
555 static struct resource saar_resource_onenand[] = {
564 .
name =
"onenand-flash",
567 .platform_data = &saar_onenand_info,
569 .resource = saar_resource_onenand,
570 .num_resources =
ARRAY_SIZE(saar_resource_onenand),
573 static void __init saar_init_onenand(
void)
578 static void __init saar_init_onenand(
void) {}
581 static void __init saar_init(
void)
599 .atag_offset = 0x100,
605 .init_machine = saar_init,