Merge tag 'omap-late-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Dec 2012 17:59:21 +0000 (09:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Dec 2012 17:59:21 +0000 (09:59 -0800)
Pull late ARM cleanups for omap from Olof Johansson:
 "From Tony Lindgren:

  Here are few more patches to finish the omap changes for multiplatform
  conversion that are not strictly fixes, but were too complex to do
  with the dependencies during the merge window.  Those are to move of
  serial-omap.h to platform_data, and the removal of remaining
  cpu_is_omap macro usage outside mach-omap2.

  Then there are several trivial fixes for typos and few minimal
  omap2plus_defconfig updates."

* tag 'omap-late-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  arch/arm/mach-omap2/dpll3xxx.c: drop if around WARN_ON
  OMAP2: Fix a typo - replace regist with register.
  ARM/omap: use module_platform_driver macro
  ARM: OMAP2+: PMU: Remove unused header
  ARM: OMAP4: remove duplicated include from omap_hwmod_44xx_data.c
  ARM: OMAP2+: omap2plus_defconfig: enable twl4030 SoC audio
  ARM: OMAP2+: omap2plus_defconfig: Add tps65217 support
  ARM: OMAP2+: enable devtmpfs and devtmpfs automount
  ARM: OMAP2+: omap_twl: Change TWL4030_MODULE_PM_RECEIVER to TWL_MODULE_PM_RECEIVER
  ARM: OMAP2+: Drop plat/cpu.h for omap2plus
  ARM: OMAP: Split fb.c to remove last remaining cpu_is_omap usage
  MAINTAINERS: Add an entry for omap related .dts files

1  2 
MAINTAINERS
arch/arm/mach-omap2/dpll3xxx.c
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
arch/arm/plat-omap/Makefile

diff --combined MAINTAINERS
@@@ -1280,7 -1280,7 +1280,7 @@@ F:      Documentation/hwmon/asc762
  F:    drivers/hwmon/asc7621.c
  
  ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS
 -M:    Corentin Chary <corentincj@iksaif.net>
 +M:    Corentin Chary <corentin.chary@gmail.com>
  L:    acpi4asus-user@lists.sourceforge.net
  L:    platform-driver-x86@vger.kernel.org
  W:    http://acpi4asus.sf.net
@@@ -1929,7 -1929,7 +1929,7 @@@ F:      scripts/checkpatch.p
  
  CHINESE DOCUMENTATION
  M:    Harry Wei <harryxiyou@gmail.com>
 -L:    xiyoulinuxkernelgroup@googlegroups.com
 +L:    xiyoulinuxkernelgroup@googlegroups.com (subscribers-only)
  L:    linux-kernel@zh-kernel.org (moderated for non-subscribers)
  S:    Maintained
  F:    Documentation/zh_CN/
@@@ -2549,15 -2549,6 +2549,15 @@@ S:    Supporte
  F:    drivers/gpu/drm/exynos
  F:    include/drm/exynos*
  
 +DRM DRIVERS FOR NVIDIA TEGRA
 +M:    Thierry Reding <thierry.reding@avionic-design.de>
 +L:    dri-devel@lists.freedesktop.org
 +L:    linux-tegra@vger.kernel.org
 +T:    git git://gitorious.org/thierryreding/linux.git
 +S:    Maintained
 +F:    drivers/gpu/drm/tegra/
 +F:    Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt
 +
  DSCC4 DRIVER
  M:    Francois Romieu <romieu@fr.zoreil.com>
  L:    netdev@vger.kernel.org
@@@ -2982,6 -2973,7 +2982,6 @@@ L:      linux-ext4@vger.kernel.or
  S:    Maintained
  F:    Documentation/filesystems/ext3.txt
  F:    fs/ext3/
 -F:    include/linux/ext3*
  
  EXT4 FILE SYSTEM
  M:    "Theodore Ts'o" <tytso@mit.edu>
@@@ -3128,8 -3120,7 +3128,8 @@@ W:      http://ieee1394.wiki.kernel.org
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git
  S:    Maintained
  F:    drivers/firewire/
 -F:    include/linux/firewire*.h
 +F:    include/linux/firewire.h
 +F:    include/uapi/linux/firewire*.h
  F:    tools/firewire/
  
  FIRMWARE LOADER (request_firmware)
@@@ -3721,7 -3712,7 +3721,7 @@@ I2C/SMBUS STUB DRIVE
  M:    "Mark M. Hoffman" <mhoffman@lightlink.com>
  L:    linux-i2c@vger.kernel.org
  S:    Maintained
 -F:    drivers/i2c/busses/i2c-stub.c
 +F:    drivers/i2c/i2c-stub.c
  
  I2C SUBSYSTEM
  M:    Wolfram Sang <w.sang@pengutronix.de>
@@@ -4314,6 -4305,7 +4314,6 @@@ M:      Jan Kara <jack@suse.cz
  L:    linux-ext4@vger.kernel.org
  S:    Maintained
  F:    fs/jbd/
 -F:    include/linux/ext3_jbd.h
  F:    include/linux/jbd.h
  
  JOURNALLING LAYER FOR BLOCK DEVICES (JBD2)
@@@ -5385,6 -5377,15 +5385,15 @@@ F:    arch/arm/*omap*
  F:    drivers/i2c/busses/i2c-omap.c
  F:    include/linux/i2c-omap.h
  
+ OMAP DEVICE TREE SUPPORT
+ M:    BenoĆ®t Cousson <b-cousson@ti.com>
+ M:    Tony Lindgren <tony@atomide.com>
+ L:    linux-omap@vger.kernel.org
+ L:    devicetree-discuss@lists.ozlabs.org (moderated for non-subscribers)
+ S:    Maintained
+ F:    arch/arm/boot/dts/*omap*
+ F:    arch/arm/boot/dts/*am3*
  OMAP CLOCK FRAMEWORK SUPPORT
  M:    Paul Walmsley <paul@pwsan.com>
  L:    linux-omap@vger.kernel.org
@@@ -6491,7 -6492,7 +6500,7 @@@ F:      drivers/media/pci/saa7146
  F:    include/media/saa7146*
  
  SAMSUNG LAPTOP DRIVER
 -M:    Corentin Chary <corentincj@iksaif.net>
 +M:    Corentin Chary <corentin.chary@gmail.com>
  L:    platform-driver-x86@vger.kernel.org
  S:    Maintained
  F:    drivers/platform/x86/samsung-laptop.c
@@@ -7545,13 -7546,6 +7554,13 @@@ S:    Maintaine
  F:    sound/soc/codecs/lm49453*
  F:    sound/soc/codecs/isabelle*
  
 +TI LP855x BACKLIGHT DRIVER
 +M:    Milo Kim <milo.kim@ti.com>
 +S:    Maintained
 +F:    Documentation/backlight/lp855x-driver.txt
 +F:    drivers/video/backlight/lp855x_bl.c
 +F:    include/linux/platform_data/lp855x.h
 +
  TI TWL4030 SERIES SOC CODEC DRIVER
  M:    Peter Ujfalusi <peter.ujfalusi@ti.com>
  L:    alsa-devel@alsa-project.org (moderated for non-subscribers)
@@@ -291,13 -291,16 +291,13 @@@ static void _lookup_sddiv(struct clk_hw
  
  /*
   * _omap3_noncore_dpll_program - set non-core DPLL M,N values directly
 - * @clk: struct clk * of DPLL to set
 - * @m: DPLL multiplier to set
 - * @n: DPLL divider to set
 - * @freqsel: FREQSEL value to set
 + * @clk:      struct clk * of DPLL to set
 + * @freqsel:  FREQSEL value to set
   *
 - * Program the DPLL with the supplied M, N values, and wait for the DPLL to
 - * lock..  Returns -EINVAL upon error, or 0 upon success.
 + * Program the DPLL with the last M, N values calculated, and wait for
 + * the DPLL to lock. Returns -EINVAL upon error, or 0 upon success.
   */
 -static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 m, u8 n,
 -                                    u16 freqsel)
 +static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel)
  {
        struct dpll_data *dd = clk->dpll_data;
        u8 dco, sd_div;
        /* Set DPLL multiplier, divider */
        v = __raw_readl(dd->mult_div1_reg);
        v &= ~(dd->mult_mask | dd->div1_mask);
 -      v |= m << __ffs(dd->mult_mask);
 -      v |= (n - 1) << __ffs(dd->div1_mask);
 +      v |= dd->last_rounded_m << __ffs(dd->mult_mask);
 +      v |= (dd->last_rounded_n - 1) << __ffs(dd->div1_mask);
  
        /* Configure dco and sd_div for dplls that have these fields */
        if (dd->dco_mask) {
 -              _lookup_dco(clk, &dco, m, n);
 +              _lookup_dco(clk, &dco, dd->last_rounded_m, dd->last_rounded_n);
                v &= ~(dd->dco_mask);
                v |= dco << __ffs(dd->dco_mask);
        }
        if (dd->sddiv_mask) {
 -              _lookup_sddiv(clk, &sd_div, m, n);
 +              _lookup_sddiv(clk, &sd_div, dd->last_rounded_m,
 +                            dd->last_rounded_n);
                v &= ~(dd->sddiv_mask);
                v |= sd_div << __ffs(dd->sddiv_mask);
        }
  
        __raw_writel(v, dd->mult_div1_reg);
  
 +      /* Set 4X multiplier and low-power mode */
 +      if (dd->m4xen_mask || dd->lpmode_mask) {
 +              v = __raw_readl(dd->control_reg);
 +
 +              if (dd->m4xen_mask) {
 +                      if (dd->last_rounded_m4xen)
 +                              v |= dd->m4xen_mask;
 +                      else
 +                              v &= ~dd->m4xen_mask;
 +              }
 +
 +              if (dd->lpmode_mask) {
 +                      if (dd->last_rounded_lpmode)
 +                              v |= dd->lpmode_mask;
 +                      else
 +                              v &= ~dd->lpmode_mask;
 +              }
 +
 +              __raw_writel(v, dd->control_reg);
 +      }
 +
        /* We let the clock framework set the other output dividers later */
  
        /* REVISIT: Set ramp-up delay? */
@@@ -504,14 -485,14 +504,13 @@@ int omap3_noncore_dpll_set_rate(struct 
                if (!cpu_is_omap44xx() && !cpu_is_omap3630()) {
                        freqsel = _omap3_dpll_compute_freqsel(clk,
                                                dd->last_rounded_n);
-                       if (!freqsel)
-                               WARN_ON(1);
+                       WARN_ON(!freqsel);
                }
  
                pr_debug("%s: %s: set rate: locking rate to %lu.\n",
                         __func__, __clk_get_name(hw->clk), rate);
  
 -              ret = omap3_noncore_dpll_program(clk, dd->last_rounded_m,
 -                                              dd->last_rounded_n, freqsel);
 +              ret = omap3_noncore_dpll_program(clk, freqsel);
                if (!ret)
                        new_parent = dd->clk_ref;
        }
@@@ -26,7 -26,6 +26,6 @@@
  
  #include <linux/omap-dma.h>
  
- #include <linux/platform_data/omap_ocp2scp.h>
  #include <linux/platform_data/spi-omap2-mcspi.h>
  #include <linux/platform_data/asoc-ti-mcbsp.h>
  #include <linux/platform_data/iommu-omap.h>
@@@ -653,7 -652,7 +652,7 @@@ static struct omap_hwmod omap44xx_dsp_h
        .mpu_irqs       = omap44xx_dsp_irqs,
        .rst_lines      = omap44xx_dsp_resets,
        .rst_lines_cnt  = ARRAY_SIZE(omap44xx_dsp_resets),
 -      .main_clk       = "dsp_fck",
 +      .main_clk       = "dpll_iva_m4x2_ck",
        .prcm = {
                .omap4 = {
                        .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
@@@ -1529,7 -1528,8 +1528,7 @@@ static struct omap_hwmod_class omap44xx
  };
  
  static struct omap_i2c_dev_attr i2c_dev_attr = {
 -      .flags  = OMAP_I2C_FLAG_BUS_SHIFT_NONE |
 -                      OMAP_I2C_FLAG_RESET_REGS_POSTIDLE,
 +      .flags  = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  };
  
  /* i2c1 */
@@@ -1679,7 -1679,7 +1678,7 @@@ static struct omap_hwmod omap44xx_ipu_h
        .mpu_irqs       = omap44xx_ipu_irqs,
        .rst_lines      = omap44xx_ipu_resets,
        .rst_lines_cnt  = ARRAY_SIZE(omap44xx_ipu_resets),
 -      .main_clk       = "ipu_fck",
 +      .main_clk       = "ducati_clk_mux_ck",
        .prcm = {
                .omap4 = {
                        .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
@@@ -3,7 -3,7 +3,7 @@@
  #
  
  # Common support
- obj-y := sram.o dma.o fb.o counter_32k.o
+ obj-y := sram.o dma.o counter_32k.o
  obj-m :=
  obj-n :=
  obj-  :=
@@@ -11,6 -11,7 +11,6 @@@
  # omap_device support (OMAP2+ only at the moment)
  
  obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o
 -obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o
  obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o
  i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o
  obj-y += $(i2c-omap-m) $(i2c-omap-y)