1. 01 11月, 2012 1 次提交
    • T
      ARM: OMAP: Make plat-omap/i2c.c port checks local · c34f7c69
      Tony Lindgren 提交于
      The common code should not have any omap1 or omap2+
      specific code, and should not need to call the cpu_is_omap
      macros.
      
      The only remaining user for cpu_is_omap macros is
      omap_i2c_nr_ports(). Let's make those checks in
      the omap specific implementation of omap_i2c_add_bus()
      instead in order to remove cpu_is_omap usage from
      the common code.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c34f7c69
  2. 19 10月, 2012 1 次提交
    • T
      ARM: OMAP: Split plat/cpu.h into local soc.h for mach-omap1 and mach-omap2 · e4c060db
      Tony Lindgren 提交于
      We want to remove plat/cpu.h. To do this, let's first split
      it to private soc.h to mach-omap1 and mach-omap2. We have to
      keep plat/cpu.h around until the remaining drivers are fixed,
      so let's include the local soc.h in plat/cpu.h and for drivers
      still including plat/cpu.h.
      
      Once the drivers are fixed not to include plat/cpu.h, we
      can remove the file.
      
      This is needed for the ARM common zImage support.
      
      [tony@atomide.com: updated to not print a warning]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      e4c060db
  3. 18 10月, 2012 1 次提交
  4. 06 10月, 2012 1 次提交
  5. 21 9月, 2012 1 次提交
    • T
      ARM: OMAP1: Make plat/mux.h omap1 only · 70c494c3
      Tony Lindgren 提交于
      We are moving omap2+ to use the device tree based pinctrl-single.c
      and will be removing the old mux framework. This will remove the
      omap1 specific parts from plat-omap.
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: linux-usb@vger.kernel.org
      Cc: linux-pcmcia@lists.infradead.org
      Cc: spi-devel-general@lists.sourceforge.net
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      70c494c3
  6. 13 9月, 2012 1 次提交
  7. 05 11月, 2011 1 次提交
  8. 29 10月, 2011 4 次提交
  9. 05 10月, 2011 1 次提交
  10. 16 9月, 2011 1 次提交
    • K
      OMAP: omap_device: when building return platform_device instead of omap_device · 3528c58e
      Kevin Hilman 提交于
      All of the device init and device driver interaction with omap_device
      is done using platform_device pointers.  To make this more explicit,
      have omap_device return a platform_device pointer instead of an
      omap_device pointer.
      
      All current users of the omap_device pointer were only using it to get
      at the platform_device pointer or struct device pointer, so fixing all
      of the users was trivial.
      
      This also makes it more difficult for device init code to directly
      access members of struct omap_device, and allows for easier changing
      of omap_device internals.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      3528c58e
  11. 28 1月, 2011 1 次提交
  12. 21 12月, 2010 1 次提交
  13. 08 12月, 2010 2 次提交
    • T
      omap: Fix undefined reference to omap2_i2c_mux_pins · be40f7a3
      Tony Lindgren 提交于
      In some cases we can get error function `omap2_i2c_add_bus':
      arch/arm/plat-omap/i2c.c:136: undefined reference to `omap2_i2c_mux_pins'
      arch/arm/plat-omap/i2c.c:141: undefined reference to `omap_hwmod_lookup'
      arch/arm/plat-omap/i2c.c:157: undefined reference to `omap_device_build'
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      be40f7a3
    • P
      OMAP1: I2C: fix device initialization · 00b4ade1
      Paul Walmsley 提交于
      Commit 4d17aeb1 ("OMAP: I2C: split
      device registration and convert OMAP2+ to omap_device") broke I2C on
      OMAP1.  The following messages appear at boot:
      
      i2c_omap i2c_omap.1: failure requesting irq 0
      i2c_omap: probe of i2c_omap.1 failed with error -22
      
      Investigation revealed that a chunk of code is missing from the
      original plat-omap/i2c.c file which configured the IRQ and base address
      for the I2C block on OMAP1.  Upon adding this back, the OMAP1 I2C block
      seems to initialize correctly.
      
      Thanks to Cory Maccarrone <darkstar6262@gmail.com> for reporting the bug,
      and apologies for the breakage.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Tested-by: NCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      00b4ade1
  14. 10 11月, 2010 1 次提交
  15. 27 7月, 2010 1 次提交
    • P
      OMAP: PM constraints: add return values; add requesting device param to... · 564889c1
      Paul Walmsley 提交于
      OMAP: PM constraints: add return values; add requesting device param to omap_pm_set_max_dev_wakeup_lat()
      
      Add return values to the PM constraint functions.  This allows the PM
      core to provide feedback to the caller if a constraint is not
      possible.  Update the one upstream user of omap_pm_set_max_mpu_wakeup_lat()
      to add a compatibility wrapper, needed until the driver is changed.
      
      Update some of the documentation to conform more closely to kerneldoc style.
      
      Add an additional device parameter to omap_pm_set_max_dev_wakeup_lat()
      to identify the device requesting the constraint.  This is so repeated calls
      to omap_pm_set_max_dev_wakeup_lat() with the same requesting device can
      override the device's previously-set constraint.  Also, it allows the PM
      core to make a decision as to whether or not the constraint should be
      satisfied, based on the caller's identity.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      564889c1
  16. 21 5月, 2010 2 次提交
  17. 20 5月, 2010 1 次提交
    • K
      i2c-omap: add mpu wake up latency constraint in i2c · 20c9d2c4
      Kalle Jokiniemi 提交于
      While waiting for completion of the i2c transfer, the
      MPU could hit OFF mode and cause several msecs of
      delay that made i2c transfers fail more often. The
      extra delays and subsequent re-trys cause i2c clocks
      to be active more often. This has also an negative
      effect on power consumption.
      
      Created a mechanism for passing and using the
      constraint setting function in driver code. The used
      mpu wake up latency constraints are now set individually
      per bus, and they are calculated based on clock rate
      and fifo size.
      
      Thanks to Jarkko Nikula, Moiz Sonasath, Paul Walmsley,
      and Nishanth Menon for tuning out the details of
      this patch.
      
      Updates by Kevin as requested by Tony:
      
      - Remove omap_set_i2c_constraint_func() in favor of conditionally
        adding the flag in omap_i2c_add_bus() in order to keep all the OMAP
        conditional checking in a single location.
      - Update set_mpu_wkup_lat prototypes to match OMAP PM layer so
        OMAP PM function can be used directly in pdata.
      
      Cc: Moiz Sonasath <m-sonasath@ti.com>
      Cc: Jarkko Nikula <jhnikula@gmail.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NKalle Jokiniemi <kalle.jokiniemi@digia.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      20c9d2c4
  18. 26 2月, 2010 1 次提交
  19. 16 2月, 2010 2 次提交
  20. 12 12月, 2009 1 次提交
  21. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  22. 26 5月, 2009 1 次提交
  23. 24 3月, 2009 3 次提交
  24. 09 1月, 2009 1 次提交
    • R
      [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c · 80b02c17
      Russell King 提交于
      arch/arm/mach-at91/at91cap9.c:337: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91rm9200.c:301: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9260.c:351: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9261.c:287: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9263.c:312: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9rl.c:304: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-h720x/h7202-eval.c:38: error: implicit declaration of function 'IRQ_CHAINED_GPIOB'
      arch/arm/mach-ks8695/devices.c:46: error: 'KS8695_IRQ_WAN_RX_STATUS' undeclared here (not in a function)
      arch/arm/mach-msm/devices.c:28: error: 'INT_UART1' undeclared here (not in a function)
      arch/arm/mach-mx2/devices.c:233: error: 'MXC_GPIO_IRQ_START' undeclared here (not in a function)
      arch/arm/mach-mx3/devices.c:128: error: 'MXC_GPIO_IRQ_START' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:140: error: 'INT_730_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:165: error: 'INT_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:200: error: 'INT_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap2/board-apollon.c:286: error: implicit declaration of function 'omap_set_gpio_direction'
      arch/arm/mach-omap2/mcbsp.c:154: error: 'INT_24XX_MCBSP1_IRQ_RX' undeclared here (not in a function)
      arch/arm/mach-omap2/mcbsp.c:181: error: 'INT_24XX_MCBSP1_IRQ_RX' undeclared here (not in a function)
      arch/arm/mach-pxa/e350.c:36: error: 'IRQ_BOARD_START' undeclared here (not in a function)
      arch/arm/plat-s3c/dev-i2c0.c:32: error: 'IRQ_IIC' undeclared here (not in a function)
      ...
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      80b02c17
  25. 11 12月, 2008 1 次提交
  26. 07 8月, 2008 2 次提交
  27. 09 2月, 2008 1 次提交