]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'omap_dss2/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 03:12:41 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 03:12:41 +0000 (14:12 +1100)
Conflicts:
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-rx51.c
drivers/video/omap/lcd_apollon.c
drivers/video/omap/lcd_ldp.c
drivers/video/omap/lcd_overo.c

20 files changed:
1  2 
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-am3517evm.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/mach-omap2/board-cm-t35.c
arch/arm/mach-omap2/board-devkit8000.c
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-igep0020.c
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-omap3beagle.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/board-omap3stalker.c
arch/arm/mach-omap2/board-omap3touchbook.c
arch/arm/mach-omap2/board-omap4panda.c
arch/arm/mach-omap2/board-overo.c
arch/arm/mach-omap2/board-rx51.c
drivers/media/video/omap/omap_vout.c
drivers/video/omap2/displays/panel-taal.c

index 4191743e2a5827570dcccf69aea3be62003bae43,6ab6350b0157c09e2523a4ba4f8c770053d46ae7..ba7d92bbf49aed60f631198c580a03972d02bf1b
@@@ -137,10 -192,12 +192,6 @@@ static inline void board_smc91x_init(vo
  
  #endif
  
- static struct omap_board_config_kernel sdp2430_config[] __initdata = {
-       {OMAP_TAG_LCD, &sdp2430_lcd_config},
- };
 -static void __init omap_2430sdp_init_early(void)
 -{
 -      omap2_init_common_infrastructure();
 -      omap2_init_common_devices(NULL, NULL);
 -}
--
  static struct regulator_consumer_supply sdp2430_vmmc1_supplies[] = {
        REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
  };
Simple merge
index f3917b3e12d6b8f8946f19c102f0be1201c6ece6,d3874a68b059b382fe64caae0482da155d00fdcc..4d0c8b9c644a2ded801f450cd37eb0c9a7f5ff86
@@@ -381,14 -379,12 +379,6 @@@ static struct platform_device *sdp4430_
        &sdp4430_vbat,
  };
  
- static struct omap_lcd_config sdp4430_lcd_config __initdata = {
-       .ctrl_name      = "internal",
- };
- static struct omap_board_config_kernel sdp4430_config[] __initdata = {
-       { OMAP_TAG_LCD,         &sdp4430_lcd_config },
- };
 -static void __init omap_4430sdp_init_early(void)
 -{
 -      omap2_init_common_infrastructure();
 -      omap2_init_common_devices(NULL, NULL);
 -}
--
  static struct omap_musb_board_data musb_board_data = {
        .interface_type         = MUSB_INTERFACE_UTMI,
        .mode                   = MUSB_OTG,
Simple merge
index 868d5f0af29e54a687aaead8cf8028e44f2ab44e,d8eb81e7d3187868f259c30409e5f6971a33d856..66f38425a20ebf2fe76597aaedd8ecb2163a6f0d
@@@ -265,14 -262,34 +262,28 @@@ static struct omap_usb_config apollon_u
        .pins[0]        = 6,
  };
  
- static struct omap_lcd_config apollon_lcd_config __initdata = {
-       .ctrl_name      = "internal",
+ static struct panel_generic_dpi_data apollon_panel_data = {
+       .name                   = "apollon",
  };
  
- static struct omap_board_config_kernel apollon_config[] __initdata = {
-       { OMAP_TAG_LCD,         &apollon_lcd_config },
+ static struct omap_dss_device apollon_lcd_device = {
+       .name                   = "lcd",
+       .driver_name            = "generic_dpi_panel",
+       .type                   = OMAP_DISPLAY_TYPE_DPI,
+       .phy.dpi.data_lines     = 18,
+       .data                   = &apollon_panel_data,
+ };
+ static struct omap_dss_device *apollon_dss_devices[] = {
+       &apollon_lcd_device,
+ };
+ static struct omap_dss_board_info apollon_dss_data = {
+       .num_devices    = ARRAY_SIZE(apollon_dss_devices),
+       .devices        = apollon_dss_devices,
+       .default_device = &apollon_lcd_device,
  };
  
 -static void __init omap_apollon_init_early(void)
 -{
 -      omap2_init_common_infrastructure();
 -      omap2_init_common_devices(NULL, NULL);
 -}
 -
  static struct gpio apollon_gpio_leds[] __initdata = {
        { LED0_GPIO13, GPIOF_OUT_INIT_LOW, "LED0" }, /* LED0 - AA10 */
        { LED1_GPIO14, GPIOF_OUT_INIT_LOW, "LED1" }, /* LED1 - AA6  */
@@@ -334,7 -349,8 +343,9 @@@ static void __init omap_apollon_init(vo
         */
        platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices));
        omap_serial_init();
 +      omap_sdrc_init(NULL, NULL);
+       omap_display_init(&apollon_dss_data);
  }
  
  static void __init omap_apollon_map_io(void)
Simple merge
index f0ddc273a3cc6e7743df1deb9575ff8404a72861,f7c09de2ed1c3d49103c7ee814b353a3d775768c..ba814844d8d031b9e6bfb07e690d511147ba84e8
@@@ -285,10 -301,12 +300,6 @@@ static struct omap_usb_config h4_usb_co
        .hmc_mode       = 0x00,         /* 0:dev|otg 1:disable 2:disable */
  };
  
- static struct omap_board_config_kernel h4_config[] __initdata = {
-       { OMAP_TAG_LCD,         &h4_lcd_config },
- };
 -static void __init omap_h4_init_early(void)
 -{
 -      omap2_init_common_infrastructure();
 -      omap2_init_common_devices(NULL, NULL);
 -}
--
  static void __init omap_h4_init_irq(void)
  {
        omap2_init_irq();
@@@ -364,8 -379,9 +372,10 @@@ static void __init omap_h4_init(void
        platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices));
        omap2_usbfs_init(&h4_usb_config);
        omap_serial_init();
 +      omap_sdrc_init(NULL, NULL);
        h4_init_flash();
+       omap_display_init(&h4_dss_data);
  }
  
  static void __init omap_h4_map_io(void)
Simple merge
index 57979175cff36e5368c3419aceb76e2b43da9c91,689ed499bdfda3ef3ed3a042e9085e039456e08b..e179da0c4da53821003f3205717eaa8cc2d96787
@@@ -179,19 -183,103 +183,97 @@@ static inline void __init ldp_init_smsc
        gpmc_smsc911x_init(&smsc911x_cfg);
  }
  
- static struct platform_device ldp_lcd_device = {
-       .name           = "ldp_lcd",
-       .id             = -1,
+ /* LCD */
+ static int ldp_backlight_gpio;
+ static int ldp_lcd_enable_gpio;
+ #define LCD_PANEL_RESET_GPIO          55
+ #define LCD_PANEL_QVGA_GPIO           56
+ static int ldp_panel_enable_lcd(struct omap_dss_device *dssdev)
+ {
+       if (gpio_is_valid(ldp_lcd_enable_gpio))
+               gpio_direction_output(ldp_lcd_enable_gpio, 1);
+       if (gpio_is_valid(ldp_backlight_gpio))
+               gpio_direction_output(ldp_backlight_gpio, 1);
+       return 0;
+ }
+ static void ldp_panel_disable_lcd(struct omap_dss_device *dssdev)
+ {
+       if (gpio_is_valid(ldp_lcd_enable_gpio))
+               gpio_direction_output(ldp_lcd_enable_gpio, 0);
+       if (gpio_is_valid(ldp_backlight_gpio))
+               gpio_direction_output(ldp_backlight_gpio, 0);
+ }
+ static struct panel_generic_dpi_data ldp_panel_data = {
+       .name                   = "nec_nl2432dr22-11b",
+       .platform_enable        = ldp_panel_enable_lcd,
+       .platform_disable       = ldp_panel_disable_lcd,
  };
  
- static struct omap_lcd_config ldp_lcd_config __initdata = {
-       .ctrl_name      = "internal",
+ static struct omap_dss_device ldp_lcd_device = {
+       .name                   = "lcd",
+       .driver_name            = "generic_dpi_panel",
+       .type                   = OMAP_DISPLAY_TYPE_DPI,
+       .phy.dpi.data_lines     = 18,
+       .data                   = &ldp_panel_data,
+ };
+ static struct omap_dss_device *ldp_dss_devices[] = {
+       &ldp_lcd_device,
  };
  
- static struct omap_board_config_kernel ldp_config[] __initdata = {
-       { OMAP_TAG_LCD,         &ldp_lcd_config },
+ static struct omap_dss_board_info ldp_dss_data = {
+       .num_devices    = ARRAY_SIZE(ldp_dss_devices),
+       .devices        = ldp_dss_devices,
+       .default_device = &ldp_lcd_device,
  };
  
 -static void __init omap_ldp_init_early(void)
 -{
 -      omap2_init_common_infrastructure();
 -      omap2_init_common_devices(NULL, NULL);
 -}
 -
+ static void __init ldp_display_init(void)
+ {
+       int r;
+       static struct gpio gpios[] __initdata = {
+               {LCD_PANEL_RESET_GPIO, GPIOF_OUT_INIT_HIGH, "LCD RESET"},
+               {LCD_PANEL_QVGA_GPIO, GPIOF_OUT_INIT_HIGH, "LCD QVGA"},
+       };
+       r = gpio_request_array(gpios, ARRAY_SIZE(gpios));
+       if (r) {
+               pr_err("Cannot request LCD GPIOs, error %d\n", r);
+               return;
+       }
+       omap_display_init(&ldp_dss_data);
+ }
+ static int ldp_twl_gpio_setup(struct device *dev, unsigned gpio, unsigned ngpio)
+ {
+       int r;
+       struct gpio gpios[] = {
+               {gpio + 7 , GPIOF_OUT_INIT_LOW, "LCD ENABLE"},
+               {gpio + 15, GPIOF_OUT_INIT_LOW, "LCD BACKLIGHT"},
+       };
+       r = gpio_request_array(gpios, ARRAY_SIZE(gpios));
+       if (r) {
+               pr_err("Cannot request LCD GPIOs, error %d\n", r);
+               ldp_backlight_gpio = -EINVAL;
+               ldp_lcd_enable_gpio = -EINVAL;
+               return r;
+       }
+       ldp_backlight_gpio = gpio + 15;
+       ldp_lcd_enable_gpio = gpio + 7;
+       return 0;
+ }
  static struct twl4030_gpio_platform_data ldp_gpio_data = {
        .gpio_base      = OMAP_MAX_GPIO_LINES,
        .irq_base       = TWL4030_GPIO_IRQ_BASE,
Simple merge
Simple merge
index e2e958aa15ae933326933a037a0ad855a7548c9f,9e7dde6a7a9012a70a22a6df36223112418ec527..34858c89389dfb5b30b1324408be84948ae6784f
@@@ -79,29 -79,15 +79,6 @@@ static struct cpuidle_params rx51_cpuid
        {7505 + 15274, 484329, 1},
  };
  
- static struct omap_lcd_config rx51_lcd_config = {
-       .ctrl_name      = "internal",
- };
- static struct omap_fbmem_config rx51_fbmem0_config = {
-       .size = 752 * 1024,
- };
- static struct omap_fbmem_config rx51_fbmem1_config = {
-       .size = 752 * 1024,
- };
- static struct omap_fbmem_config rx51_fbmem2_config = {
-       .size = 752 * 1024,
- };
 -static void __init rx51_init_early(void)
 -{
 -      struct omap_sdrc_params *sdrc_params;
--
- static struct omap_board_config_kernel rx51_config[] = {
-       { OMAP_TAG_FBMEM,       &rx51_fbmem0_config },
-       { OMAP_TAG_FBMEM,       &rx51_fbmem1_config },
-       { OMAP_TAG_FBMEM,       &rx51_fbmem2_config },
-       { OMAP_TAG_LCD,         &rx51_lcd_config },
- };
 -      omap2_init_common_infrastructure();
 -      sdrc_params = nokia_get_sdram_timings();
 -      omap2_init_common_devices(sdrc_params, sdrc_params);
 -}
--
  extern void __init rx51_peripherals_init(void);
  
  #ifdef CONFIG_OMAP_MUX
@@@ -118,17 -104,9 +95,15 @@@ static struct omap_musb_board_data musb
  
  static void __init rx51_init(void)
  {
 +      struct omap_sdrc_params *sdrc_params;
 +
        omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
-       omap_board_config = rx51_config;
-       omap_board_config_size = ARRAY_SIZE(rx51_config);
        omap3_pm_init_cpuidle(rx51_cpuidle_params);
        omap_serial_init();
 +
 +      sdrc_params = nokia_get_sdram_timings();
 +      omap_sdrc_init(sdrc_params, sdrc_params);
 +
        usb_musb_init(&musb_board_data);
        rx51_peripherals_init();
  
Simple merge