Merge branch 'renesas/fixes' into renesas/soc
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Mar 2012 17:26:43 +0000 (17:26 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Mar 2012 17:33:38 +0000 (17:33 +0000)
The fixes branch was merged into mainline just after v3.3-rc7,
I'm merging it into this branch to fix up a nontrivial merge
conflict. Unfortunately this means that we are now based on
a commit between -rc releases, which we normally try to avoid.

Conflicts:
arch/arm/mach-shmobile/board-mackerel.c

Resolution suggested by Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1  2 
arch/arm/mach-shmobile/board-ag5evm.c
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-bonito.c
arch/arm/mach-shmobile/board-mackerel.c

index 675660d951d093c021bd0e89f94bea879ad039e9,8aea3a2dd889ef73bb0be3a961497bd3ad8bbc7e..bd7953b59a8467913a123057a8008576b58cb201
@@@ -38,6 -38,7 +38,7 @@@
  #include <linux/mmc/sh_mobile_sdhi.h>
  #include <linux/mfd/tmio.h>
  #include <linux/sh_clk.h>
+ #include <linux/videodev2.h>
  #include <video/sh_mobile_lcdc.h>
  #include <video/sh_mipi_dsi.h>
  #include <sound/sh_fsi.h>
@@@ -46,6 -47,8 +47,6 @@@
  #include <mach/common.h>
  #include <asm/mach-types.h>
  #include <asm/mach/arch.h>
 -#include <asm/mach/map.h>
 -#include <asm/mach/time.h>
  #include <asm/hardware/gic.h>
  #include <asm/hardware/cache-l2x0.h>
  #include <asm/traps.h>
@@@ -484,6 -487,27 +485,6 @@@ static struct platform_device *ag5evm_d
        &sdhi1_device,
  };
  
 -static struct map_desc ag5evm_io_desc[] __initdata = {
 -      /* create a 1:1 entity map for 0xe6xxxxxx
 -       * used by CPGA, INTC and PFC.
 -       */
 -      {
 -              .virtual        = 0xe6000000,
 -              .pfn            = __phys_to_pfn(0xe6000000),
 -              .length         = 256 << 20,
 -              .type           = MT_DEVICE_NONSHARED
 -      },
 -};
 -
 -static void __init ag5evm_map_io(void)
 -{
 -      iotable_init(ag5evm_io_desc, ARRAY_SIZE(ag5evm_io_desc));
 -
 -      /* setup early devices and console here as well */
 -      sh73a0_add_early_devices();
 -      shmobile_setup_console();
 -}
 -
  static void __init ag5evm_init(void)
  {
        sh73a0_pinmux_init();
        platform_add_devices(ag5evm_devices, ARRAY_SIZE(ag5evm_devices));
  }
  
 -static void __init ag5evm_timer_init(void)
 -{
 -      sh73a0_clock_init();
 -      shmobile_timer.init();
 -      return;
 -}
 -
 -struct sys_timer ag5evm_timer = {
 -      .init   = ag5evm_timer_init,
 -};
 -
  MACHINE_START(AG5EVM, "ag5evm")
 -      .map_io         = ag5evm_map_io,
 +      .map_io         = sh73a0_map_io,
 +      .init_early     = sh73a0_add_early_devices,
        .nr_irqs        = NR_IRQS_LEGACY,
        .init_irq       = sh73a0_init_irq,
        .handle_irq     = gic_handle_irq,
        .init_machine   = ag5evm_init,
 -      .timer          = &ag5evm_timer,
 +      .timer          = &shmobile_timer,
  MACHINE_END
index d07ec186a6cf7a9f2114212ecaa130c9cc9d4e22,b4718b00e827b90e73edf01b252379cca75e4bcc..4739f039650aa8481073a75bb1166387ef585f4d
@@@ -61,6 -61,8 +61,6 @@@
  
  #include <asm/mach-types.h>
  #include <asm/mach/arch.h>
 -#include <asm/mach/map.h>
 -#include <asm/mach/time.h>
  #include <asm/setup.h>
  
  /*
@@@ -792,7 -794,7 +792,7 @@@ static struct fsi_ak4642_info fsi2_ak46
  static struct platform_device fsi_ak4643_device = {
        .name   = "fsi-ak4642-audio",
        .dev    = {
-               .platform_data  = &fsi_info,
+               .platform_data  = &fsi2_ak4643_info,
        },
  };
  
@@@ -1188,6 -1190,27 +1188,6 @@@ static struct i2c_board_info i2c1_devic
        },
  };
  
 -static struct map_desc ap4evb_io_desc[] __initdata = {
 -      /* create a 1:1 entity map for 0xe6xxxxxx
 -       * used by CPGA, INTC and PFC.
 -       */
 -      {
 -              .virtual        = 0xe6000000,
 -              .pfn            = __phys_to_pfn(0xe6000000),
 -              .length         = 256 << 20,
 -              .type           = MT_DEVICE_NONSHARED
 -      },
 -};
 -
 -static void __init ap4evb_map_io(void)
 -{
 -      iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc));
 -
 -      /* setup early devices and console here as well */
 -      sh7372_add_early_devices();
 -      shmobile_setup_console();
 -}
 -
  #define GPIO_PORT9CR  0xE6051009
  #define GPIO_PORT10CR 0xE605100A
  #define USCCR1                0xE6058144
@@@ -1196,9 -1219,6 +1196,9 @@@ static void __init ap4evb_init(void
        u32 srcr4;
        struct clk *clk;
  
 +      /* External clock source */
 +      clk_set_rate(&sh7372_dv_clki_clk, 27000000);
 +
        sh7372_pinmux_init();
  
        /* enable SCIFA0 */
        pm_clk_add(&lcdc1_device.dev, "hdmi");
  }
  
 -static void __init ap4evb_timer_init(void)
 -{
 -      sh7372_clock_init();
 -      shmobile_timer.init();
 -
 -      /* External clock source */
 -      clk_set_rate(&sh7372_dv_clki_clk, 27000000);
 -}
 -
 -static struct sys_timer ap4evb_timer = {
 -      .init           = ap4evb_timer_init,
 -};
 -
  MACHINE_START(AP4EVB, "ap4evb")
 -      .map_io         = ap4evb_map_io,
 +      .map_io         = sh7372_map_io,
 +      .init_early     = sh7372_add_early_devices,
        .init_irq       = sh7372_init_irq,
        .handle_irq     = shmobile_handle_irq_intc,
        .init_machine   = ap4evb_init,
 -      .timer          = &ap4evb_timer,
 +      .timer          = &shmobile_timer,
  MACHINE_END
index d062becd5460918f38d58b17c00bd7ed2944f7bb,4bd1162ce0dfb53eff3d8faa6849da09a9d17638..396814a6a2c9384664fcccf44c875d99793bd93d
@@@ -27,6 -27,7 +27,7 @@@
  #include <linux/platform_device.h>
  #include <linux/gpio.h>
  #include <linux/smsc911x.h>
+ #include <linux/videodev2.h>
  #include <mach/common.h>
  #include <asm/mach-types.h>
  #include <asm/mach/arch.h>
@@@ -241,7 -242,7 +242,7 @@@ static struct sh_mobile_lcdc_info lcdc0
        .clock_source   = LCDC_CLK_BUS,
        .ch[0] = {
                .chan                   = LCDC_CHAN_MAINLCD,
-               .bpp                    = 16,
+               .fourcc = V4L2_PIX_FMT_RGB565,
                .interface_type         = RGB24,
                .clock_divider          = 5,
                .flags                  = 0,
@@@ -327,6 -328,28 +328,6 @@@ static struct platform_device *bonito_b
   * map I/O
   */
  static struct map_desc bonito_io_desc[] __initdata = {
 -       /*
 -        * for CPGA/INTC/PFC
 -        * 0xe6000000-0xefffffff -> 0xe6000000-0xefffffff
 -        */
 -      {
 -              .virtual        = 0xe6000000,
 -              .pfn            = __phys_to_pfn(0xe6000000),
 -              .length         = 160 << 20,
 -              .type           = MT_DEVICE_NONSHARED
 -      },
 -#ifdef CONFIG_CACHE_L2X0
 -      /*
 -       * for l2x0_init()
 -       * 0xf0100000-0xf0101000 -> 0xf0002000-0xf0003000
 -       */
 -      {
 -              .virtual        = 0xf0002000,
 -              .pfn            = __phys_to_pfn(0xf0100000),
 -              .length         = PAGE_SIZE,
 -              .type           = MT_DEVICE_NONSHARED
 -      },
 -#endif
        /*
         * for FPGA (0x1800000-0x19ffffff)
         * 0x18000000-0x18002000 -> 0xf0003000-0xf0005000
  
  static void __init bonito_map_io(void)
  {
 +      r8a7740_map_io();
        iotable_init(bonito_io_desc, ARRAY_SIZE(bonito_io_desc));
 -
 -      /* setup early devices and console here as well */
 -      r8a7740_add_early_devices();
 -      shmobile_setup_console();
  }
  
  /*
@@@ -466,7 -492,7 +467,7 @@@ static void __init bonito_init(void
        }
  }
  
 -static void __init bonito_timer_init(void)
 +static void __init bonito_earlytimer_init(void)
  {
        u16 val;
        u8 md_ck = 0;
                md_ck |= MD_CK0;
  
        r8a7740_clock_init(md_ck);
 -      shmobile_timer.init();
 +      shmobile_earlytimer_init();
  }
  
 -struct sys_timer bonito_timer = {
 -      .init   = bonito_timer_init,
 -};
 +void __init bonito_add_early_devices(void)
 +{
 +      r8a7740_add_early_devices();
 +
 +      /* override timer setup with board-specific code */
 +      shmobile_timer.init = bonito_earlytimer_init;
 +}
  
  MACHINE_START(BONITO, "bonito")
        .map_io         = bonito_map_io,
 +      .init_early     = bonito_add_early_devices,
        .init_irq       = r8a7740_init_irq,
        .handle_irq     = shmobile_handle_irq_intc,
        .init_machine   = bonito_init,
 -      .timer          = &bonito_timer,
 +      .timer          = &shmobile_timer,
  MACHINE_END
index 55da7a1159127f776c252ce8c2479795155ee7db,7b53cda418513a63f69d34a90e903aa4d7b76f1c..71d279150471c3641d86bff26fa53859798fd586
@@@ -57,6 -57,8 +57,6 @@@
  #include <mach/sh7372.h>
  
  #include <asm/mach/arch.h>
 -#include <asm/mach/time.h>
 -#include <asm/mach/map.h>
  #include <asm/mach-types.h>
  
  /*
@@@ -1335,6 -1337,31 +1335,15 @@@ static struct i2c_board_info i2c1_devic
        },
  };
  
 -static struct map_desc mackerel_io_desc[] __initdata = {
 -      /* create a 1:1 entity map for 0xe6xxxxxx
 -       * used by CPGA, INTC and PFC.
 -       */
 -      {
 -              .virtual        = 0xe6000000,
 -              .pfn            = __phys_to_pfn(0xe6000000),
 -              .length         = 256 << 20,
 -              .type           = MT_DEVICE_NONSHARED
 -      },
 -};
 -
+ static void __init mackerel_map_io(void)
+ {
 -      iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc));
++      sh7372_map_io();
+       /* DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't
+        * enough to allocate the frame buffer memory.
+        */
+       init_consistent_dma_size(12 << 20);
 -
 -      /* setup early devices and console here as well */
 -      sh7372_add_early_devices();
 -      shmobile_setup_console();
+ }
  #define GPIO_PORT9CR  0xE6051009
  #define GPIO_PORT10CR 0xE605100A
  #define GPIO_PORT167CR        0xE60520A7
@@@ -1347,9 -1374,6 +1356,9 @@@ static void __init mackerel_init(void
        struct clk *clk;
        int ret;
  
 +      /* External clock source */
 +      clk_set_rate(&sh7372_dv_clki_clk, 27000000);
 +
        sh7372_pinmux_init();
  
        /* enable SCIFA0 */
        pm_clk_add(&hdmi_lcdc_device.dev, "hdmi");
  }
  
 -static void __init mackerel_timer_init(void)
 -{
 -      sh7372_clock_init();
 -      shmobile_timer.init();
 -
 -      /* External clock source */
 -      clk_set_rate(&sh7372_dv_clki_clk, 27000000);
 -}
 -
 -static struct sys_timer mackerel_timer = {
 -      .init           = mackerel_timer_init,
 -};
 -
  MACHINE_START(MACKEREL, "mackerel")
-       .map_io         = sh7372_map_io,
+       .map_io         = mackerel_map_io,
 +      .init_early     = sh7372_add_early_devices,
        .init_irq       = sh7372_init_irq,
        .handle_irq     = shmobile_handle_irq_intc,
        .init_machine   = mackerel_init,
 -      .timer          = &mackerel_timer,
 +      .timer          = &shmobile_timer,
  MACHINE_END
This page took 0.055332 seconds and 5 git commands to generate.