1. 13 9月, 2012 1 次提交
  2. 12 5月, 2012 2 次提交
  3. 29 3月, 2012 1 次提交
  4. 06 3月, 2012 1 次提交
  5. 06 2月, 2012 11 次提交
  6. 12 8月, 2011 3 次提交
  7. 17 6月, 2011 5 次提交
  8. 27 5月, 2011 1 次提交
  9. 31 3月, 2011 1 次提交
  10. 22 12月, 2010 1 次提交
    • P
      OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 · 72e06d08
      Paul Walmsley 提交于
      The OMAP powerdomain code and data is all OMAP2+-specific.  This seems
      unlikely to change any time soon.  Move plat-omap/include/plat/powerdomain.h
      to mach-omap2/powerdomain.h.  The primary point of doing this is to remove
      the temptation for unrelated upper-layer code to access powerdomain code
      and data directly.
      
      As part of this process, remove the references to powerdomain data
      from the GPIO "driver" and the OMAP PM no-op layer, both in plat-omap.
      Change the DSPBridge code to point to the new location for the
      powerdomain headers.  The DSPBridge code should not be including the
      powerdomain headers; these should be removed.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Cc: Felipe Contreras <felipe.contreras@gmail.com>
      Cc: Greg Kroah-Hartman <greg@kroah.com>
      72e06d08
  11. 08 12月, 2010 4 次提交
    • T
      omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx · 5de62b86
      Tony Lindgren 提交于
      We need to divide the 15xx/16xx offset by 2 for 7xx. Use bank->stride
      for that. This allows us to get rid of the duplicate defines for the
      MPUIO registers.
      
      Note that this will cause omap-keypad.c driver to not work on 7xx.
      However, the right fix there is to move over to matrix_keypad instead
      as suggested by Cory Maccarrone <darkstar6262@gmail.com> and
      Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>.
      
      Cc: Cory Maccarrone <darkstar6262@gmail.com>
      Acked-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      5de62b86
    • V
      OMAP: GPIO: Implement GPIO as a platform device · 77640aab
      Varadarajan, Charulatha 提交于
      Implement GPIO as a platform device.
      
      GPIO APIs are used in machine_init functions. Hence it is
      required to complete GPIO probe before board_init. Therefore
      GPIO device register and driver register are implemented as
      postcore_initcalls.
      
      omap_gpio_init() does nothing now and this function would be
      removed in the next patch as it's usage is spread across most
      of the board files.
      
      Inorder to convert GPIO as platform device, modifications are
      required in clockxxxx_data.c file for OMAP1 so that device names
      can be used to obtain clock instead of getting clocks by
      name/NULL ptr.
      
      Use runtime pm APIs (pm_runtime_put*/pm_runtime_get*) for enabling
      or disabling the clocks, modify sysconfig settings and remove usage
      of clock FW APIs.
      Note 1: Converting GPIO driver to use runtime PM APIs is not done as a
      separate patch because GPIO clock names are different for various OMAPs
      and are different for some of the banks in the same CPU. This would need
      usage of cpu_is checks and bank id checks while using clock FW APIs in
      the gpio driver. Hence while making GPIO a platform driver framework,
      PM runtime APIs are used directly.
      
      Note 2: While implementing GPIO as a platform device, pm runtime APIs
      are used as mentioned above and modification is not done in gpio's
      prepare for idle/ resume after idle functions. This would be done
      in the next patch series and GPIO driver would be made to use dev_pm_ops
      instead of sysdev_class in that series only.
      
      Due to the above, the GPIO driver implicitly relies on
      CM_AUTOIDLE = 1 on its iclk for power management to work, since the
      driver never disables its iclk.
      This would be taken care in the next patch series (see Note 3 below).
      
      Refer to
      http://www.mail-archive.com/linux-omap@vger.kernel.org/msg39112.html
      for more details.
      
      Note 3: only pm_runtime_get_sync is called in gpio's probe() and
      pm_runtime_put* is never called. This is to make the implementation
      similar to the existing GPIO code. Another patch series would be sent
      to correct this.
      
      In OMAP3 and OMAP4 gpio's debounce clocks are optional clocks. They
      are enabled/ disabled whenever required using clock framework APIs
      
      TODO:
      1. Cleanup the GPIO driver. Use function pointers and register
      offest pointers instead of using hardcoded values
      2. Remove all cpu_is_ checks and OMAP specific macros
      3. Remove usage of gpio_bank array so that only
         instance specific information is used in driver code
      4. Rename 'method'/ avoid it's usage
      5. Fix the non-wakeup gpios handling for OMAP2430, OMAP3 & OMAP4
      6. Modify gpio's prepare for idle/ resume after idle functions
         to use runtime pm implentation.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Reviewed-by: NBasak, Partha <p-basak2@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      [tony@atomide.com: updated for bank specific revision and updated boards]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      77640aab
    • V
      OMAP2420: hwmod data: Add GPIO · 59c348c3
      Varadarajan, Charulatha 提交于
      Add GPIO hwmod data for OMAP2420 and add the required
      GPIO device attributes in the gpio header file
      
      Also remove "omap24xx.h" header file as it is not required
      anymore.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Acked-by: NBenoit Cousson <b-cousson@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      59c348c3
    • V
      OMAP15xx: GPIO: Introduce support for GPIO init · c95d10bc
      Varadarajan, Charulatha 提交于
      Add support for handling OMAP15xx specific gpio_init by
      providing platform device data and doing device registration.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c95d10bc
  12. 13 5月, 2010 1 次提交
    • K
      OMAP2/3: GPIO: generalize prepare for idle · 43ffcd9a
      Kevin Hilman 提交于
      Currently, the GPIO 'prepare' hook is only called when going to
      off-mode, while the function is called 'prepare_for_retention.'  This
      patch renames the function to 'prepare_for_idle' and calls it for any
      powersate != PWRDM_POWER_ON passing in the powerstate.
      
      The hook itself is then responsible for doing various preparation
      based on the powerstate.
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      43ffcd9a
  13. 12 11月, 2009 1 次提交
  14. 20 10月, 2009 1 次提交
    • T
      omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 · 3eff851b
      Tony Lindgren 提交于
      Create the headers needed for compiling under
      mach-omap1/include/mach and mach-omap2/include/mach.
      
      This was done with the following script:
      
      #!/bin/bash
      mach_files="clkdev.h gpio.h hardware.h io.h irqs.h memory.h \
      smp.h system.h timex.h uncompress.h vmalloc.h"
      omaps="mach-omap1 mach-omap2"
      
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      
      mkdir -p $plat_dir_new
      git add $plat_dir_new
      
      for dir in $omaps; do
      	mach_dir_new="arch/arm/$dir/include/mach"
      	for header in $mach_files; do
      		file="$mach_dir_new/$header"
      		if [ ! -f $file ]; then
      			echo -ne "/*\n * $file\n */\n\n#include <plat/$header>\n" > $file
      			git add $file
      			if [ ! -f $plat_dir_new/$header ]; then
      				git mv $mach_dir_old/$header $plat_dir_new/$header
      			fi
      		fi
      	done
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3eff851b
  15. 29 8月, 2009 1 次提交
  16. 24 3月, 2009 1 次提交
  17. 15 1月, 2009 1 次提交
  18. 11 12月, 2008 3 次提交
    • J
      ARM: OMAP: make legacy gpio request/free calls superfluous · 3ff164e1
      Jarkko Nikula 提交于
      Clean up OMAP GPIO request/free functions
      
       - Rename and declare static OMAP specific GPIO request/free functions
       - Register them into gpiolib as chip-specific hooks
       - Add omap_request_gpio/omap_free_gpio wrappers for existing code not
         converted yet to use gpiolib
      Signed-off-by: NJarkko Nikula <jarkko.nikula@nokia.com>
      [ dbrownell@users.sourceforge.net: remove needless check_gpio() calls ]
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3ff164e1
    • D
      ARM: OMAP: switch to gpio_direction_output · e918edf7
      David Brownell 提交于
      More conversion to the standard GPIO interfaces:  stop using
      omap_set_gpio_direction() entirely, and switch over to the
      gpio_direction_output() call.
      
      Note that because gpio_direction_output() includes the initial
      value, this change isn't quite transparent.
      
       - For the call sites which defined an initial value either
         before or after setting the direction, that value was used.
      
         When that value was previously assigned afterwards, this
         could eliminate a brief output glitch ... and possibly
         change behavior.  In a few cases (LCDs) several values
         were assigned together ... those were re-arranged to match
         the explicit sequence provided.
      
       - Some call sites didn't define such a value; so I chose an
         initial "off/reset" value that seemed to default to "off".
      
      In short, files touched by this patch might notice some small
      changes in startup behavior (with trivial fixes).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      e918edf7
    • D
      ARM: OMAP: switch to standard gpio get/set calls · 0b84b5ca
      David Brownell 提交于
      This patch replaces some legacy OMAP GPIO calls with the "new" (not
      really, any more!) calls that work on most platforms.
      
      The calls addressed by this patch are the simple ones to get and set
      values ... for code that's in mainline, including the implementations
      of those calls.
      
      Except for the declarations and definitions of those calls, all of
      these changes were performed by a simple SED script.  Plus, a few
      "if() set() else set()" branches were merged by hand.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0b84b5ca