1. 02 10月, 2018 1 次提交
  2. 29 9月, 2018 3 次提交
  3. 25 9月, 2018 4 次提交
  4. 22 8月, 2018 1 次提交
  5. 17 8月, 2018 1 次提交
    • T
      bus: ti-sysc: Fix module register ioremap for larger offsets · 0ef8e3bb
      Tony Lindgren 提交于
      We can have the interconnect target module control registers pretty
      much anywhere within the module range. The current code attempts an
      incomplete optimization of the ioremap size but does it wrong and
      it only works for registers at the beginning of the module.
      
      Let's just use the largest control register to calculate the ioremap
      size. The ioremapped range is for most part cached anyways so there
      is no need for size optimization. Let's also update the comments
      accordingly.
      
      Fixes: 0eecc636 ("bus: ti-sysc: Add minimal TI sysc interconnect
      target driver")
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0ef8e3bb
  6. 10 7月, 2018 2 次提交
  7. 02 7月, 2018 1 次提交
  8. 18 5月, 2018 1 次提交
  9. 01 5月, 2018 10 次提交
  10. 27 2月, 2018 7 次提交
    • T
      bus: ti-sysc: Handle some devices in omap_device compatible way · a885f0fe
      Tony Lindgren 提交于
      Now that ti-sysc can manage child devices, we must also be backwards
      compatible with the current omap_device code. With omap_device, we
      assume that the child device manages the interconnect target module
      directly.
      
      The drivers needing special handling are the ones that still set
      pm_runtime_irq_safe(). In the long run we want to update those drivers
      as otherwise they will cause problems with genpd as a permanent PM
      runtime usage count is set on the parent device.
      
      We can handle omap_device these devices by improving the ti-sysc quirk
      handling to detect the devices needing special handling based on
      register map and revision register if usable. We also need to implement
      dev_pm_domain for these child devices just like omap_device does.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      a885f0fe
    • T
      bus: ti-sysc: Add support for platform data callbacks · ef70b0bd
      Tony Lindgren 提交于
      We want to pass the device tree configuration for interconnect target
      modules from ti-sysc driver to the existing platform hwmod code.
      
      This allows us to first validate the dts data against the existing
      platform data before we start dropping the platform data in favor of
      device tree data.
      
      To do this, let's add platform data callbacks for PM runtime functions
      to call for the interconnect target modules if platform data is
      available.
      
      Note that as ti-sysc driver can rebind, omap_auxdata_lookup and related
      functions can no longer be __init.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ef70b0bd
    • T
      bus: ti-sysc: Remove unnecessary debugging statements · dd57ac1e
      Tony Lindgren 提交于
      We already show the status for the interconnect target module
      when debugging is enabled, there's no need to be more verbose
      about that. So let's just cut down the noise and remove the
      extra debug statements.
      Signed-off-by: NTony Lindgren <tony@atomide.coM>
      dd57ac1e
    • T
      bus: ti-sysc: Improve handling for no-reset-on-init and no-idle-on-init · 76f0f772
      Tony Lindgren 提交于
      At least earlycon needs a delayed idle before the 8250 driver probes
      to avoid glitches in the console output. Let's handle the delayed idle
      for devices tagged with ti,no-reset-on-init and ti,no-idle-on-init with
      delayed_work. Others don't need it, and there should be no need to use
      runtime PM autosuspend for the interconnect target driver as it's the
      child device drivers that should configure it.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      76f0f772
    • T
      bus: ti-sysc: Handle stdout-path for debug console · 3bb37c8e
      Tony Lindgren 提交于
      If we have stdout-path specified for earlycon, we must prevent
      the debug console from idling until runtime PM kicks in.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3bb37c8e
    • T
      bus: ti-sysc: Add suspend and resume handling · 62020f23
      Tony Lindgren 提交于
      This allows us to idle the module on suspend after the children
      are suspended.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      62020f23
    • T
      bus: ti-sysc: Add fck clock alias for children with notifier_block · 2c355ff6
      Tony Lindgren 提交于
      The functional clock is used by several child device drivers to query
      the rate for the child device internal configuration. The functional
      clock is really for the whole interconnect target module, and not just
      for the child device, and can also be shared across multiple children.
      At least the timers, i2c and mmc driver query the fck for rate.
      
      So let's just create a clock alias for the child fck if it does not
      yet exits. We can do this with the BUS_NOTIFY_ADD_DEVICE before the
      child is probed.
      
      Note that we need to now also remove the legacy mode check for getting
      the dts clocks in ti-sysc driver.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2c355ff6
  11. 16 2月, 2018 1 次提交
  12. 23 1月, 2018 1 次提交
  13. 21 12月, 2017 4 次提交
  14. 14 10月, 2017 2 次提交
  15. 11 10月, 2017 1 次提交
    • T
      bus: ti-sysc: Add minimal TI sysc interconnect target driver · 0eecc636
      Tony Lindgren 提交于
      We can handle the sysc interconnect target module in a generic way
      for many TI SoCs. Initially let's just enable runtime PM with
      autosuspend, and probe the children. This can already be used for
      idling interconnect target modules that don't have any device driver
      available for the child devices.
      
      For now, the "ti,hwmods" custom binding is still required. That will
      be eventually deprecated in later patches. And more features will be
      added, such as parsing for sysc capabilities so we can continue
      removing the legacy platform data.
      
      Cc: Benoît Cousson <bcousson@baylibre.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Matthijs van Duin <matthijsvanduin@gmail.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Sakari Ailus <sakari.ailus@iki.fi>
      Cc: Tero Kristo <t-kristo@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0eecc636