1. 06 7月, 2015 2 次提交
  2. 25 5月, 2015 1 次提交
    • A
      ARM: shmobile: only select sound drivers that build · 66f72f0c
      Arnd Bergmann 提交于
      A couple of codec drivers are selected by shmobile platform code,
      but depend on I2C, which results in a build error:
      
      sound/soc/codecs/ak4642.c:638:1: warning: data definition has no type or storage class
       module_i2c_driver(ak4642_i2c_driver);
       ^
      sound/soc/codecs/ak4642.c:638:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
      sound/soc/codecs/ak4642.c:638:1: warning: parameter names (without types) in function declaration
      sound/soc/codecs/ak4642.c:627:26: warning: 'ak4642_i2c_driver' defined but not used [-Wunused-variable]
      
      This ensures that we do not enable the respective drivers when I2C
      is disabled.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      66f72f0c
  3. 11 3月, 2015 1 次提交
    • G
      ARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk · 663fbb52
      Geert Uytterhoeven 提交于
      The r8a7790/lager and r8a7791/koelsch development boards have da9063 and
      da9210 regulators.  Both regulators have their interrupt request lines
      tied to the same interrupt pin (IRQ2) on the SoC.
      
      After cold boot or da9063-induced restart, both the da9063 and da9210
      seem to assert their interrupt request lines.  Hence as soon as one
      driver requests this irq, it gets stuck in an interrupt storm, as it
      only manages to deassert its own interrupt request line, and the other
      driver hasn't installed an interrupt handler yet.
      
      To handle this, install a quirk that masks the interrupts in both the
      da9063 and da9210.  This quirk has to run after the i2c master driver
      has been initialized, but before the i2c slave drivers are initialized.
      As it depends on i2c, select I2C if one of the affected platforms is
      enabled in the kernel config.
      
      On koelsch, the following happens:
      
        - Cold boot or reboot using the da9063 restart handler:
      
      	IRQ2 is asserted, installing da9063/da9210 regulator quirk
      	...
      	i2c i2c-6: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
      	i2c 6-0058: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
      	i2c 6-0058: Detected da9063
      	i2c 6-0058: Masking da9063 interrupt sources
      	i2c 6-0068: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
      	i2c 6-0068: Detected da9210
      	i2c 6-0068: Masking da9210 interrupt sources
      	i2c 6-0068: IRQ2 is not asserted, removing quirk
      
        - Warm boot (reset button):
      
      	rcar_gen2_regulator_quirk: IRQ2 is not asserted, not installing quirk
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Tested-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Reviewed-by: NMark Brown <broonie@kernel.org>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      663fbb52
  4. 01 3月, 2015 1 次提交
  5. 24 2月, 2015 6 次提交
  6. 15 1月, 2015 1 次提交
    • G
      ARM: shmobile: R-Mobile: Add DT support for PM domains · 2173fc7c
      Geert Uytterhoeven 提交于
      Populate the PM domains from DT, and provide support to hook up devices
      to their respective PM domain.
      
      The always-on power area (e.g. C5 on r8a7740) is created as a PM domain
      without software control, to allow Run-Time management of module clocks
      for hardware blocks inside this area.
      
      Special cases like PM domains containing CPUs, the console device, or
      Coresight-ETM, are handled by scanning the DT topology.
      
      As long as the ARM debug/perf code doesn't use resource management with
      runtime PM support, the power area containing Coresight-ETM (e.g. D4 on
      r8a7740) must be kept powered to avoid a crash during resume from s2ram
      (dbg_cpu_pm_notify() calls reset_ctrl_regs() unconditionally, causing an
      undefined instruction oops).
      
      Initialization is done from core_initcall(), as the
      "renesas,intc-irqpin" driver uses postcore_initcall().
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      2173fc7c
  7. 21 12月, 2014 4 次提交
  8. 05 11月, 2014 1 次提交
  9. 30 10月, 2014 3 次提交
  10. 28 10月, 2014 1 次提交
    • L
      ARM: shmobile: Select CONFIG_ZONE_DMA when CONFIG_ARM_LPAE is enabled · 3794705a
      Laurent Pinchart 提交于
      Most IP cores on ARM Renesas platforms can only address 32 bits of
      physical memory for DMA. Without CONFIG_ZONE_DMA enabled and with the
      recent CMA highmem allocation support, the default CMA zone is reserved
      above the 4GiB limit when LPAE is enabled, resulting in various driver
      failures.
      
      Fix the problem by selecting CONFIG_ZONE_DMA. Other options to
      investigate in the future would be to either enable IOMMU support or use
      custom CMA reservations for peripherals not supporting LPAE.
      
      While not a strict dependency, the "[PATCH 0/4] Low/high memory CMA
      reservation fixes" series is also required to fix a different but related CMA
      allocation problem.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      3794705a
  11. 24 10月, 2014 1 次提交
  12. 05 9月, 2014 1 次提交
  13. 04 9月, 2014 1 次提交
  14. 02 9月, 2014 10 次提交
  15. 22 8月, 2014 1 次提交
  16. 17 8月, 2014 2 次提交
  17. 23 7月, 2014 1 次提交
  18. 23 6月, 2014 1 次提交
  19. 17 6月, 2014 1 次提交