1. 13 Nov, 2012 4 commits
  2. 12 Nov, 2012 3 commits
    • Mike Turquette's avatar
      ARM: OMAP4: clock: Convert to common clk · 32cc0021
      Mike Turquette authored
      Convert all OMAP4 specific platform files to use COMMON clk
      and keep all the changes under the CONFIG_COMMON_CLK macro check
      so it does not break any existing code. At a later point switch
      to COMMON clk and get rid of all old/legacy code.
      
      This converts all apis which will be called directly from COMMON
      clk to take a struct clk_hw parameter, and all the internal platform
      apis to take a struct clk_hw_omap parameter.
      
      Changes are based off the original patch from Mike Turquette.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      [paul@pwsan.com: created new omap2_clksel_find_parent_index() rather than
       modifying omap2_init_clksel_parent(); moved clkhwops_iclk_wait to
       clkt_iclk.c to fix OMAP4-only builds; added clk-provider.h include to clock.h
       to try to fix some 3430-builds]
      [mturquette@ti.com: squash patch for omap2_clkops_{en,dis}able_clkdm;
       omap2_dflt_clk_is_enabled should not enable clocks]
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      [paul@pwsan.com: fix compiler warning; update to apply; added kerneldoc on
       non-trivial new functions; added the dpll3xxx clockdomain modifications]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      32cc0021
    • Rajendra Nayak's avatar
      ARM: OMAP: hwmod: Fix up hwmod based clkdm accesses · f5dd3bb5
      Rajendra Nayak authored
      hwmod uses deferencing the clk pointer to acccess the clkdm.
      With COMMON clk hwoever this will need to be deferenced through
      the clk_hw_omap pointer, so do the necessary changes.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      f5dd3bb5
    • Rajendra Nayak's avatar
      ARM: OMAP: clock: Nuke plat/clock.c & reuse struct clk as clk_hw_omap · b5a2366c
      Rajendra Nayak authored
      plat/clock.c which has most of usecounting/locking infrastructure will
      be used only for OMAP1 until that is moved to use COMMON clk.
      
      reuse most of what plat/clock.h has while we move to common clk, and
      move most of what 'struct clk' was as 'struct clk_hw_omap' which
      will then be used to define platform specific parameters.
      All usecounting/locking related variables from 'struct clk' are
      dropped as they will not be used with 'struct clk_hw_omap'.
      
      Based on the original changes from Mike Turquette.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      b5a2366c
  3. 09 Nov, 2012 1 commit
  4. 08 Nov, 2012 15 commits
  5. 30 Oct, 2012 2 commits
    • Paul Walmsley's avatar
      ARM: OMAP2+: WDT: move init; add read_reset_sources pdata function pointer · 37c67d03
      Paul Walmsley authored
      The OMAP watchdog timer driver directly calls a function exported by
      code in arch/arm/mach-omap2.  This is not good; it tightly couples
      this driver to the mach-omap2 integration code.  Instead, add a
      temporary platform_data function pointer to abstract this function
      call.  A subsequent patch will convert the watchdog driver to use this
      function pointer.
      
      This patch also moves the device creation code out of
      arch/arm/mach-omap2/devices.c and into arch/arm/mach-omap2/wd_timer.c.
      This is another step towards the removal of
      arch/arm/mach-omap2/devices.c.
      
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Acked-by: default avatarWim Van Sebroeck <wim@iguana.be>
      [paul@pwsan.com: skip wd_timer device creation when DT blob is present]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      37c67d03
    • Paul Walmsley's avatar
      ARM: OMAP1: CGRM: fix omap1_get_reset_sources() return type · 508c0d47
      Paul Walmsley authored
      An older version of the patch "ARM: OMAP1: create read_reset_sources()
      function (for initial use by watchdog)" was sent upstream, which used
      the wrong return type for the omap1_get_reset_sources() function.
      Fix it to return a u32, which is what the WDTIMER platform_data
      function pointer read_reset_sources() expects.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      508c0d47
  6. 26 Oct, 2012 5 commits
  7. 25 Oct, 2012 2 commits
  8. 24 Oct, 2012 8 commits
    • Tony Lindgren's avatar
      Merge branch 'omap-for-v3.8/cleanup-headers-usb' into omap-for-v3.8/cleanup-headers · 6d02643d
      Tony Lindgren authored
      Conflicts:
      	arch/arm/mach-omap1/clock.c
      	arch/arm/mach-omap2/board-2430sdp.c
      	arch/arm/mach-omap2/board-4430sdp.c
      	arch/arm/mach-omap2/board-cm-t35.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-omap3logic.c
      	arch/arm/mach-omap2/board-omap4panda.c
      	arch/arm/mach-omap2/board-overo.c
      	arch/arm/mach-omap2/board-rm680.c
      	arch/arm/mach-omap2/board-rx51.c
      	arch/arm/mach-omap2/twl-common.c
      	arch/arm/mach-omap2/usb-host.c
      	arch/arm/mach-omap2/usb-musb.c
      6d02643d
    • Felipe Balbi's avatar
      ARM: OMAP: move OMAP USB platform data to <linux/platform_data/omap-usb.h> · e8c4a7ac
      Felipe Balbi authored
      In order to make single zImage work for ARM architecture,
      we need to make sure we don't depend on private headers.
      
      Move USB platform_data to <linux/platform_data/omap-usb.h>
      and add a minimal drivers/mfd/usb-omap.h.
      
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Partha Basak <parthab@india.ti.com>
      Cc: Keshava Munegowda <keshava_mgowda@ti.com>
      Cc: linux-usb@vger.kernel.org
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      [tony@atomide.com: updated for local mfd/usb-omap.h]
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e8c4a7ac
    • Tony Lindgren's avatar
      ARM: OMAP2+: Introduce local usb.h · 54db6eee
      Tony Lindgren authored
      Let's move what we can from plat/usb.h to the local usb.h
      for ARM common zImage support.
      
      This is needed so we can remove plat/usb.h for ARM common
      zImage support.
      
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Partha Basak <parthab@india.ti.com>
      Cc: Keshava Munegowda <keshava_mgowda@ti.com>
      Cc: linux-usb@vger.kernel.org
      Acked-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      54db6eee
    • Tony Lindgren's avatar
      ARM: OMAP: Split plat/serial.h for omap1 and omap2+ · 3d82cbbb
      Tony Lindgren authored
      For omap1, we'll keep mach/serial.h around for 8250.c hardware
      workarounds. For omap2+, we no longer need mach/serial.h and
      can make it local to mach-omap2.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      3d82cbbb
    • Tony Lindgren's avatar
      ARM: OMAP: Split uncompress.h to mach-omap1 and mach-omap2 · ede8df1e
      Tony Lindgren authored
      This allows us to eventually move omap2+ to generic
      debug code that's configured in Kconfig for the port.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ede8df1e
    • Tony Lindgren's avatar
      Merge tag 'omap-for-v3.8/cleanup-headers-signed' into omap-for-v3.8/cleanup-headers-serial-take2 · 3e9a6321
      Tony Lindgren authored
      This is the first set of omap cleanup patches for v3.8 merge
      window to remove most of the remaining plat includes to get us
      closer to ARM common zImage support.
      
      To avoid a huge amount of trivial merge conflicts with includes,
      this branch is based on several small topic branches coordinated
      with the driver subsystem maintainers. These branches are based on
      v3.7-rc1 and can also be merged into the related driver subsystem
      branches as needed:
      
      omap-for-v3.8/cleanup-headers-prepare   few trivial driver changes
      omap-for-v3.8/cleanup-headers-dma       move of the DMA header
      omap-for-v3.8/cleanup-headers-gpmc      GPMC and MTD changes
      omap-for-v3.8/cleanup-headers-mmc       MMC related changes
      omap-for-v3.8/cleanup-headers-dss       DSS related changes
      omap-for-v3.8/cleanup-headers-asoc      ASoC related changes
      
      Note that for the dma-omap.h, it was decided that it should be
      is completed. For the related discussion, please see:
      
      https://patchwork.kernel.org/patch/1519591/#
      
      After these patches we still have a few plat headers remaining
      that will be handled in later pull requests.
      3e9a6321
    • Tony Lindgren's avatar
      tty/serial/8250: Make omap hardware workarounds local to 8250.h · 54ec52b6
      Tony Lindgren authored
      This allows us to get rid of the ifdefs in 8250.c.
      
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      54ec52b6
    • Alexey Brodkin's avatar
      serial/8250/8250_early: Prevent rounding error in uartclk · b15d5380
      Alexey Brodkin authored
      Modify divisor to select the nearest baud rate divider rather than the
      lowest. It minimizes baud rate errors especially on low UART clock
      frequencies.
      
      For example, if uartclk is 33000000 and baud is 115200 the ratio is
      about 17.9 The current code selects 17 (5% error) but should select 18
      (0.5% error).
      
      This 5% error in baud rate leads to garbage on receiving end, while 0.5%
      doesn't.
      
      The issue showed up when using the stock 8250 driver for
      Synopsys DW UART. This was on a FPGA with ~12MHz UART clock.
      When we enabled early serial, we saw garbage which was narrowed down
      to the rounding error.
      
      So the bug had been latent and it only showed up with such low clock rates.
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Acked-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b15d5380