Merge branch 'master' into sh/hwblk
authorPaul Mundt <lethal@linux-sh.org>
Sat, 15 Aug 2009 04:00:02 +0000 (13:00 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 15 Aug 2009 04:00:02 +0000 (13:00 +0900)
1  2 
arch/sh/boards/board-ap325rxa.c
arch/sh/boards/mach-kfr2r09/setup.c
arch/sh/boards/mach-migor/setup.c
arch/sh/boards/mach-se/7724/setup.c
drivers/base/platform.c

Simple merge
@@@ -95,14 -113,73 +113,76 @@@ static struct platform_device kfr2r09_s
        .dev    = {
                .platform_data  = &kfr2r09_sh_keysc_info,
        },
 +      .archdata = {
 +              .hwblk_id = HWBLK_KEYSC,
 +      },
  };
  
+ static struct sh_mobile_lcdc_info kfr2r09_sh_lcdc_info = {
+       .clock_source = LCDC_CLK_BUS,
+       .ch[0] = {
+               .chan = LCDC_CHAN_MAINLCD,
+               .bpp = 16,
+               .interface_type = SYS18,
+               .clock_divider = 6,
+               .flags = LCDC_FLAGS_DWPOL,
+               .lcd_cfg = {
+                       .name = "TX07D34VM0AAA",
+                       .xres = 240,
+                       .yres = 400,
+                       .left_margin = 0,
+                       .right_margin = 16,
+                       .hsync_len = 8,
+                       .upper_margin = 0,
+                       .lower_margin = 1,
+                       .vsync_len = 1,
+                       .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+               },
+               .lcd_size_cfg = {
+                       .width = 35,
+                       .height = 58,
+               },
+               .board_cfg = {
+                       .setup_sys = kfr2r09_lcd_setup,
+                       .display_on = kfr2r09_lcd_on,
+                       .display_off = kfr2r09_lcd_off,
+               },
+               .sys_bus_cfg = {
+                       .ldmt2r = 0x07010904,
+                       .ldmt3r = 0x14012914,
+                       /* set 1s delay to encourage fsync() */
+                       .deferred_io_msec = 1000,
+               },
+       }
+ };
+ static struct resource kfr2r09_sh_lcdc_resources[] = {
+       [0] = {
+               .name   = "LCDC",
+               .start  = 0xfe940000, /* P4-only space */
+               .end    = 0xfe941fff,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start  = 106,
+               .flags  = IORESOURCE_IRQ,
+       },
+ };
+ static struct platform_device kfr2r09_sh_lcdc_device = {
+       .name           = "sh_mobile_lcdc_fb",
+       .num_resources  = ARRAY_SIZE(kfr2r09_sh_lcdc_resources),
+       .resource       = kfr2r09_sh_lcdc_resources,
+       .dev    = {
+               .platform_data  = &kfr2r09_sh_lcdc_info,
+       },
+ };
  static struct platform_device *kfr2r09_devices[] __initdata = {
        &kfr2r09_nor_flash_device,
+       &kfr2r09_nand_flash_device,
        &kfr2r09_sh_keysc_device,
+       &kfr2r09_sh_lcdc_device,
  };
  
  #define BSC_CS0BCR 0xfec10004
Simple merge
@@@ -242,12 -244,9 +250,12 @@@ static struct platform_device ceu1_devi
        .dev    = {
                .platform_data  = &sh_mobile_ceu1_info,
        },
 +      .archdata = {
 +              .hwblk_id = HWBLK_CEU1,
 +      },
  };
  
- /* KEYSC */
+ /* KEYSC in SoC (Needs SW33-2 set to ON) */
  static struct sh_keysc_info keysc_info = {
        .mode = SH_KEYSC_MODE_1,
        .scan_timing = 10,
Simple merge