1. 05 11月, 2011 7 次提交
    • T
      ARM: OMAP: change get_context_loss_count ret value to int · fc013873
      Tomi Valkeinen 提交于
      get_context_loss_count functions return context loss count as u32, and
      zero means an error. However, zero is also returned when context has
      never been lost and could also be returned when the context loss count
      has wrapped and goes to zero.
      
      Change the functions to return an int, with negative value meaning an
      error.
      
      OMAP HSMMC code uses omap_pm_get_dev_context_loss_count(), but as the
      hsmmc code handles the returned value as an int, with negative value
      meaning an error, this patch actually fixes hsmmc code also.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Acked-by: NKevin Hilman <khilman@ti.com>
      Acked-by: NPaul Walmsley <paul@pwsan.com>
      [tony@atomide.com: updated to fix a warning with recent dmtimer changes]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      fc013873
    • B
      ARM: OMAP4: hsmmc: configure SDMMC1_DR0 properly · c862dd70
      Balaji T K 提交于
      Fix the typo, instead it should be SDMMC1
      USBC1 is not related to MMC1 I/Os
      Signed-off-by: NBalaji T K <balajitk@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c862dd70
    • B
      ARM: OMAP4: hsmmc: Fix Pbias configuration on regulator OFF · ff2beb1d
      Balaji T K 提交于
      MMC1 data line IO's are powered down in before set regulator function.
      IO's should not be powered ON when regulator is OFF.
      Keep the IO's in power pown mode after regulator OFF otherwise VMODE_ERROR
      interrupt is generated due to mismatch in input (regulator)
      voltage and MMC IO drive voltage.
      Delete incorrect comments which are not applicable for OMAP4.
      Signed-off-by: NBalaji T K <balajitk@ti.com>
      Signed-off-by: NKishore Kadiyala <kishore.kadiyala@ti.com>
      Reported-by: NViswanath Puttagunta <vishp@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ff2beb1d
    • P
      ARM: OMAP3: hwmod: fix variant registration and remove SmartReflex from common list · ace90216
      Paul Walmsley 提交于
      Commit d6504acd ("OMAP2+: hwmod:
      remove OMAP_CHIP*") tests the inverse condition of what it should be
      testing for the return value from omap_hwmod_register().  This causes
      several IP blocks to not be registered on several OMAP3 family devices.
      
      Fixing that bug also unmasked another bug, originally reported by
      Chase Maupin <chase.maupin@ti.com> and then subsequently by Abhilash K
      V <abhilash.kv@ti.com>, which caused SmartReflex IP blocks to be
      registered on SoCs that don't support them.
      
      Thanks to Russell King - ARM Linux <linux@arm.linux.org.uk> for comments
      on a previous version of the patch.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Chase Maupin <chase.maupin@ti.com>
      Cc: Abhilash K V <abhilash.kv@ti.com>
      Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ace90216
    • A
      ARM: OMAP2+: l3-noc: Include linux/module.h · d4fc7eb5
      Axel Lin 提交于
      Include linux/module.h to fix below build error:
      
        CC      arch/arm/mach-omap2/omap_l3_noc.o
      arch/arm/mach-omap2/omap_l3_noc.c:240: error: expected ',' or ';' before 'MODULE_DEVICE_TABLE'
      arch/arm/mach-omap2/omap_l3_noc.c:250: error: 'THIS_MODULE' undeclared here (not in a function)
      make[1]: *** [arch/arm/mach-omap2/omap_l3_noc.o] Error 1
      make: *** [arch/arm/mach-omap2] Error 2
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d4fc7eb5
    • P
      ARM: OMAP2+: devices: Fixes for McPDM · 927dbbb2
      Peter Ujfalusi 提交于
      Commit f718e2c0 (ARM: OMAP2+: devices:
      Remove all omap_device_pm_latency structures) removed these structures.
      Commit 3528c58e (OMAP: omap_device:
      when building return platform_device instead of omap_device) now
      returns platform_device instead of omap_device.
      
      Fix up the omap-mcpdm init function since this part comes via sound
      tree, and there has been changes regarding to hwmod/omap_device_build.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      CC: Benoit Cousson <b-cousson@ti.com>
      CC: Kevin Hilman <khilman@ti.com>
      [tony@atomide.com: updated comments]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      927dbbb2
    • S
      ARM: OMAP: Fix errors and warnings when building for one board · c4e2d245
      Sanjeev Premi 提交于
      When customizing omap2plus_defconfig to build for only
      one board (omap3evm), I came across these warnings and
      errors (filenames truncated):
      
      arch/arm/mach-omap2/board-generic.c:76:20: warning: 'omap4_init' defined but not used
      arch/arm/mach-omap2/built-in.o: In function `omap2420_init_early':
      arch/arm/mach-omap2/io.c:364: undefined reference to `omap2_set_globals_242x'
      arch/arm/mach-omap2/io.c:366: undefined reference to `omap2xxx_voltagedomains_init'
      arch/arm/mach-omap2/io.c:367: undefined reference to `omap242x_powerdomains_init'
      arch/arm/mach-omap2/io.c:368: undefined reference to `omap242x_clockdomains_init'
      arch/arm/mach-omap2/io.c:369: undefined reference to `omap2420_hwmod_init'
      arch/arm/mach-omap2/built-in.o: In function `omap2430_init_early':
      arch/arm/mach-omap2/io.c:376: undefined reference to `omap2_set_globals_243x'
      arch/arm/mach-omap2/io.c:378: undefined reference to `omap2xxx_voltagedomains_init'
      arch/arm/mach-omap2/io.c:379: undefined reference to `omap243x_powerdomains_init'
      arch/arm/mach-omap2/io.c:380: undefined reference to `omap243x_clockdomains_init'
      arch/arm/mach-omap2/io.c:381: undefined reference to `omap2430_hwmod_init'
      arch/arm/mach-omap2/built-in.o: In function `omap4430_init_early':
      arch/arm/mach-omap2/io.c:436: undefined reference to `omap2_set_globals_443x'
      arch/arm/mach-omap2/io.c:438: undefined reference to `omap44xx_voltagedomains_init'
      arch/arm/mach-omap2/io.c:439: undefined reference to `omap44xx_powerdomains_init'
      arch/arm/mach-omap2/io.c:440: undefined reference to `omap44xx_clockdomains_init'
      arch/arm/mach-omap2/io.c:441: undefined reference to `omap44xx_hwmod_init'
      
      This patch fixes them.
      Signed-off-by: NSanjeev Premi <premi@ti.com>
      Acked-by: NThomas Weber <weber@corscience.de>
      [tony@atomide.com: updated to fix warnings for board-generic.c]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c4e2d245
  2. 23 10月, 2011 1 次提交
    • M
      ARM: gic: consolidate PPI handling · 292b293c
      Marc Zyngier 提交于
      PPI handling is a bit of an odd beast. It uses its own low level
      handling code and is hardwired to the local timers (hence lacking
      a registration interface).
      
      Instead, switch the low handling to the normal SPI handling code.
      PPIs are handled by the handle_percpu_devid_irq flow.
      
      This also allows the removal of some duplicated code.
      
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: David Brown <davidb@codeaurora.org>
      Cc: Bryan Huntsman <bryanh@codeaurora.org>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Acked-by: NDavid Brown <davidb@codeaurora.org>
      Tested-by: NDavid Brown <davidb@codeaurora.org>
      Tested-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      292b293c
  3. 21 10月, 2011 1 次提交
  4. 20 10月, 2011 4 次提交
  5. 17 10月, 2011 1 次提交
  6. 08 10月, 2011 3 次提交
    • P
      ARM: OMAP3: PM: restrict erratum i443 handling to OMAP3430 only · 30474544
      Paul Walmsley 提交于
      Based on the documents that I have here, there doesn't appear to be an
      equivalent to erratum i443 for OMAP3630, so restrict this one to OMAP34xx
      chips.
      
      Also, explicitly restrict this erratum to EMU and HS devices.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      30474544
    • P
      ARM: OMAP3: PM: fix I/O wakeup and I/O chain clock control detection · b02b9172
      Paul Walmsley 提交于
      The way that we detect which OMAP3 chips support I/O wakeup and
      software I/O chain clock control is broken.
      
      Currently, I/O wakeup is marked as present for all OMAP3 SoCs other
      than the AM3505/3517.  The TI81xx family of SoCs are at present
      considered to be OMAP3 SoCs, but don't support I/O wakeup.  To resolve
      this, convert the existing blacklist approach to an explicit,
      whitelist support, in which only SoCs which are known to support I/O
      wakeup are listed.  (At present, this only includes OMAP34xx,
      OMAP3503, OMAP3515, OMAP3525, OMAP3530, and OMAP36xx.)
      
      Also, the current code incorrectly detects the presence of a
      software-controllable I/O chain clock on several chips that don't
      support it.  This results in writes to reserved bitfields, unnecessary
      delays, and console messages on kernels running on those chips:
      
          http://www.spinics.net/lists/linux-omap/msg58735.html
      
      Convert this test to a feature test with a chip-by-chip whitelist.
      
      Thanks to Dave Hylands <dhylands@gmail.com> for reporting this problem
      and doing some testing to help isolate the cause.  Thanks to Steve
      Sakoman <sakoman@gmail.com> for catching a bug in the first version of
      this patch.  Thanks to Russell King <linux@arm.linux.org.uk> for
      comments.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Dave Hylands <dhylands@gmail.com>
      Cc: Steve Sakoman <sakoman@gmail.com>
      Tested-by: NSteve Sakoman <sakoman@gmail.com>
      Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      b02b9172
    • C
      ARM: OMAP3: PM: fix pwrdm_post_transition call sequence · ff2f8e5f
      Charulatha V 提交于
      The context lost count is modified in omap_sram_idle() path when
      pwrdm_post_transition() is called. But pwrdm_post_transition() is called
      only after omap_gpio_resume_after_idle() is called. Correct this so that
      context lost count is modified before calling omap_gpio_resume_after_idle().
      
      This would be useful when OMAP GPIO save/restore context is called by
      the OMAP GPIO driver itself.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Reviewed-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      ff2f8e5f
  7. 07 10月, 2011 9 次提交
  8. 05 10月, 2011 9 次提交
  9. 04 10月, 2011 2 次提交
  10. 02 10月, 2011 1 次提交
  11. 01 10月, 2011 2 次提交
    • A
      ARM: OMAP: musb: Remove a redundant omap4430_phy_init call in usb_musb_init · b8e111a7
      Axel Lin 提交于
      Current code calls omap4430_phy_init() twice in usb_musb_init().
      Calling omap4430_phy_init() once is enough.
      This patch removes the first omap4430_phy_init() call, which using an
      uninitialized pointer as parameter.
      
      This patch elimates below build warning:
      arch/arm/mach-omap2/usb-musb.c: In function 'usb_musb_init':
      arch/arm/mach-omap2/usb-musb.c:141: warning: 'dev' may be used uninitialized in this function
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Bjarne Steinsbo <bsteinsbo@gmail.com>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b8e111a7
    • T
      ARM: OMAP: Fix i2c init for twl4030 · bfd46a54
      Tony Lindgren 提交于
      Looks like 2600 kHz rate does not work reliably on 2430,
      so just use the 100 kHz rate.
      
      Otherwise the system often fails to boot properly with:
      
      omap_i2c omap_i2c.2: timeout waiting for bus ready
      omap_i2c omap_i2c.2: timeout waiting for bus ready
      twl: i2c_write failed to transfer all messages
      omap_i2c omap_i2c.2: timeout waiting for bus ready
      twl: i2c_write failed to transfer all messages
      omap_i2c omap_i2c.2: timeout waiting for bus ready
      twl: i2c_write failed to transfer all messages
      twl: clock init err [-110]
      omap_i2c omap_i2c.2: timeout waiting for bus ready
      twl: i2c_write failed to transfer all messages
      TWL4030 Unable to unlock IDCODE registers --110
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      bfd46a54