1. 22 6月, 2015 1 次提交
  2. 25 7月, 2014 1 次提交
    • L
      mfd: twl6030-irq: Extinguish coding style warnings · 3103de8c
      Lee Jones 提交于
      This is part of an effort to clean-up the MFD subsystem.
      
      WARNING: please, no space before tabs
      +^IRSV_INTR_OFFSET,  ^I/* Bit 12^IReserved^I^I*/$
      
      WARNING: Missing a blank line after declarations
      +       u8 unmask_value;
      +       ret = twl_i2c_read_u8(TWL_MODULE_PIH, &unmask_value,
      
      WARNING: Missing a blank line after declarations
      +       u8 mask_value;
      +       ret = twl_i2c_read_u8(TWL_MODULE_PIH, &mask_value,
      
      total: 0 errors, 3 warnings, 484 lines checked
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      3103de8c
  3. 19 3月, 2014 1 次提交
  4. 21 1月, 2014 1 次提交
  5. 20 8月, 2013 5 次提交
  6. 21 11月, 2012 1 次提交
  7. 22 3月, 2012 3 次提交
    • B
      mfd: Replace twl-* pr_ macros by the dev_ equivalent and do various cleanups · ec1a07b3
      Benoit Cousson 提交于
      Since a structure device is available now, use the dev_ macros instead
      of the pr_ ones.
      
      Clean some badly formatted comments.
      Remove some unused variables.
      Move some variable to the place they belong.
      Clean some badly wrapped lines.
      Align variable definition
      Add missing braces in if-then-else block.
      Add blank line for better readability.
      Move stuff here and there...
      
      Conflicts:
      
      	drivers/mfd/twl-core.c
      Signed-off-by: NBenoit Cousson <b-cousson@ti.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      ec1a07b3
    • B
      mfd: Move twl-core IRQ allocation into twl[4030|6030]-irq files · 78518ffa
      Benoit Cousson 提交于
      During DT adaptation, the irq_alloc_desc was added into twl-core, but
      due to the rather different and weird IRQ management required by the twl4030,
      it is much better to have a different approach for it.
      The issue is that twl4030 uses a two level IRQ mechanism but handles all the
      PWR interrupts as part of the twl-core interrupt range. It ends up with a
      range of 16 interrupts total for CORE and PWR.
      
      The other twl4030 functionalities already have a dedicated driver and thus
      their IRQs and irqdomain can and should be defined localy.
      
      twl6030 is using a single level IRQ controller and thus does not require any
      trick.
      
      Move the irq_alloc_desc and irq_domain_add_legacy in twl4030-irq and
      twl6030-irq.
      
      Allocate together CORE and PWR IRQs for twl4030-irq.
      
      Conflicts:
      
              drivers/mfd/twl-core.c
      Signed-off-by: NBenoit Cousson <b-cousson@ti.com>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      78518ffa
    • B
      mfd: Return twl6030_mmc_card_detect IRQ for board setup · bdd61bc6
      Benoit Cousson 提交于
      Card detect IRQ from the TWL6030 used to be provided to the MMC
      controller code using a statically allocated IRQ scheme:
      
        card_detect_irq = TWL6030_IRQ_BASE + MMCDETECT_INTR_OFFSET;
      
      This is no longer valid in a SPARSE_IRQ context since there is no more
      pre-defined TWL6030_IRQ_BASE.
      
      Return the proper card detect IRQ value in the twl6030_mmc_card_detect_config
      that will be called from the MMC controller.
      Signed-off-by: NBenoit Cousson <b-cousson@ti.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Rajendra Nayak <rnayak@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      bdd61bc6
  8. 07 3月, 2012 2 次提交
    • N
      mfd: Make twl6030_irq_set_wake static · b8b8d793
      Nishanth Menon 提交于
      twl6030_irq_set_wake is not used anywhere else in the kernel
      except as irq_chip.irq_set_wake. No reason for it to be exported.
      
      Also fixes build warning:
      drivers/mfd/twl6030-irq.c:230:5: warning: symbol 'twl6030_irq_set_wake' was not declared. Should it be static?
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      b8b8d793
    • N
      mfd: Clear twl6030 IRQ status register only once · 3f8349e6
      Nishanth Menon 提交于
      TWL6030 family of PMIC use a shadow interrupt status register
      while kernel processes the current interrupt event.
      However, any write(0 or 1) to register INT_STS_A, INT_STS_B or
      INT_STS_C clears all 3 interrupt status registers.
      
      Since clear of the interrupt is done on 32k clk, depending on I2C
      bus speed, we could in-adverently clear the status of a interrupt
      status pending on shadow register in the current implementation.
      This is due to the fact that multi-byte i2c write operation into
      three seperate status register could result in multiple load
      and clear of status and result in lost interrupts.
      
      Instead, doing a single byte write to INT_STS_A register with 0x0
      will clear all three interrupt status registers without the related
      risk.
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      3f8349e6
  9. 22 11月, 2011 1 次提交
  10. 01 11月, 2011 1 次提交
  11. 24 10月, 2011 5 次提交
  12. 27 5月, 2011 1 次提交
  13. 31 3月, 2011 1 次提交
  14. 27 3月, 2011 2 次提交
  15. 14 1月, 2011 1 次提交
  16. 10 12月, 2010 1 次提交
    • H
      mfd: TWL6030: USBOTG VBUS event generation on · 77b1d3fa
      Hema HK 提交于
      With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated
      as expected. When these interrupts are enabled, charger VBUS detection
      interrupt does not get generated. So USBOTG has to be dependent on charger
      VBUS interrupts.
      So added one bit for USBOTG and changed the handler to call the
      USBOTG handler whenever there is a charger VBUS interrpt.
      
      VBUS SESS_VLD and SESS_END event generation issue is under debug with
      HW team. This fix might not be required once after fixing the issue.
      Signed-off-by: NBalaji TK <balajitk@ti.com>
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      77b1d3fa
  17. 29 10月, 2010 2 次提交
    • G
      mfd: Fix twl-irq function declaration warnings · b0b4a7c2
      G, Manjunath Kondaiah 提交于
      Fixes following sparse warnings for twl4030 and twl6030 irq files.
      
      drivers/mfd/twl4030-irq.c:783:5: warning: symbol 'twl4030_init_irq' was not
      declared. Should it be static?
      drivers/mfd/twl4030-irq.c:863:5: warning: symbol 'twl4030_exit_irq' was not
      declared. Should it be static?
      drivers/mfd/twl4030-irq.c:873:5: warning: symbol 'twl4030_init_chip_irq' was
      not declared. Should it be static?
      
      drivers/mfd/twl6030-irq.c:226:5: warning: symbol 'twl6030_init_irq' was not
      declared. Should it be static?
      drivers/mfd/twl6030-irq.c:290:5: warning: symbol 'twl6030_exit_irq' was not
      declared. Should it be static?
      Signed-off-by: NG, Manjunath Kondaiah <manjugk@ti.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      b0b4a7c2
    • K
      mfd: Adding twl6030 mmc card detect support for MMC1 · 72f2e2c7
      kishore kadiyala 提交于
      Adding card detect callback function and card detect configuration
      function for MMC1 Controller on OMAP4.
      
      Card detect configuration function does initial configuration of the
      MMC Control & PullUp-PullDown registers of Phoenix.
      
      For MMC1 Controller, card detect interrupt source is
      twl6030 which is non-gpio. The card detect call back function provides
      card present/absent status by reading MMC Control register present
      on twl6030.
      
      Since OMAP4 doesn't use any GPIO line as used in OMAP3 for card detect,
      the suspend/resume initialization which was done in omap_hsmmc_gpio_init
      previously is moved to the probe thus making it generic for both OMAP3 &
      OMAP4.
      
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
      Cc: Adrian Hunter <adrian.hunter@nokia.com>
      Signed-off-by: NKishore Kadiyala <kishore.kadiyala@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      72f2e2c7
  18. 14 12月, 2009 1 次提交