1. 27 1月, 2010 15 次提交
  2. 21 1月, 2010 16 次提交
  3. 20 1月, 2010 5 次提交
    • T
      omap3: Fix cpu detection · e9acb9b6
      Tony Lindgren 提交于
      We need to set the omap_chip.oc carefully for the clocks to work.
      
      To fix this, set the omap_chip.oc in omap3_check_features() based
      on the CONTROL_IDCODE and silicon revision registers.
      
      Also add handling for 34xx es3.1.2 as es3.1 for now.
      
      Fixes booting on at least overo board.
      
      Based on an earlier patch by Paul Walmsley <paul@pwsan.com>.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      e9acb9b6
    • T
      omap: Fix functions for dynamic remuxing of pins · d4bb72e5
      Tony Lindgren 提交于
      Make the omap_mux_read and write available for board code,
      and rename omap_mux_set_board_signals into omap_mux_write_array.
      Also add the related prototypes and comments into mux.h.
      
      In some cases we want to change the signals dynamically,
      mostly for power management.
      
      Note that we cannot use the signal names as they are set
      __init to save memory.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d4bb72e5
    • T
      omap: Fix cmdline muxing · 2cb0c54f
      Tony Lindgren 提交于
      Looks like cmdline muxing got broken at some point when we
      decided to limit muxing to __init code. Currently omap_mux_entry
      list is not yet initialized when we try to initialize cmdline
      muxing.
      
      Fix this by calling omap_mux_init_list() before calling
      omap_mux_set_cmdline_signals().
      Reported-by: NPhilip Balister <philip@balister.org>
      Tested-by: NPhilip Balister <philip@balister.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2cb0c54f
    • R
      OMAP3: clock: Remove unnecessarily .init initializers from OMAP3 clocks · 6468e3b1
      Russell King 提交于
      The first thing that omap2_init_clksel_parent() does is check for
      a non-zero .clksel field in the struct clk.  Therefore, it is
      pointless calling this function on clocks where the clksel field
      is unset.
      
      Remove init calls to omap2_init_clksel_parent() on clocks without
      a clksel field.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      6468e3b1
    • T
      OMAP3: hwmod: Adding flag to prevent caching of sysconfig register. · 883edfdd
      Thara Gopinath 提交于
      In the current implementation the sysconfig value is read into
       _sysc_cache once and an actual update to the sysconfig register
      happens only if the new value paased is differnt from the one in _sysc_cache.
      _sysc_cache is updated only if _HWMOD_SYSCONFIG_LOADED is not set.
      This can lead to the follwing issue if off mode is enabled in modules
      which employs "always-retore" mechanism of context save and restore.
      
              a. The module sets the sysconfig register through omap_device_enable.
                 Here _sysc_cache is updated with the value written to the sysconfig
                 register and left.
              b. The power domain containig the module enters off mode and the
                 module context is lost.
              c. The module in use becomes active and calls omap_device_enable to
                 enable itself. Here a read of sysconfig register does not happen
                 as _HWMOD_SYSCONFIG_LOADED flag is set. The value to be written
                 to the sysconfig register will be same as the one written in step a.
                 Since _sysc_cache reflects the previous written value an update
                 of the sysconfig register does not happen.
      This means in modules which employs "always-restore" mechanism
      after off , the sysconfig regsiters will never get updated.
      
      This patch introduces a flag SYSC_NO_CACHE which if set ensures that the
      sysconfig register is always read into _sysc_cache before an update is
      attempted.
      
      This flags need to be set only by modules which does not do a context save
      but re-initializes the registers every time the module is accessed. This
      includes modules like i2c, smartreflex etc.
      Signed-off-by: NThara Gopinath <thara@ti.com>
      [paul@pwsan.com: tweaked to apply on a different head, added flag comment]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      883edfdd
  4. 09 1月, 2010 4 次提交