1. 24 4月, 2018 1 次提交
  2. 20 3月, 2018 1 次提交
  3. 13 3月, 2018 1 次提交
    • A
      cpufreq: scmi: add thermal dependency · 697a3a87
      Arnd Bergmann 提交于
      A built-in scmi cpufreq driver cannot link against a modular
      thermal framework:
      
      drivers/cpufreq/scmi-cpufreq.o: In function `scmi_cpufreq_ready':
      scmi-cpufreq.c:(.text+0x40): undefined reference to `of_cpufreq_cooling_register'
      drivers/cpufreq/scmi-cpufreq.o: In function `scmi_cpufreq_exit':
      scmi-cpufreq.c:(.text+0x88): undefined reference to `cpufreq_cooling_unregister'
      
      This adds a Kconfig dependency that makes sure this configuration
      is not possible, while allowing all configurations that can work.
      Note that disabling CPU_THERMAL means we don't care about the
      THERMAL dependency.
      Acked-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      697a3a87
  4. 01 3月, 2018 1 次提交
  5. 27 2月, 2018 1 次提交
  6. 17 12月, 2017 1 次提交
  7. 16 12月, 2017 1 次提交
  8. 22 8月, 2017 1 次提交
  9. 22 7月, 2017 2 次提交
  10. 14 5月, 2017 1 次提交
  11. 20 4月, 2017 1 次提交
  12. 16 2月, 2017 1 次提交
  13. 10 2月, 2017 1 次提交
    • D
      cpufreq: ti: Add cpufreq driver to determine available OPPs at runtime · e13cf046
      Dave Gerlach 提交于
      Some TI SoCs, like those in the AM335x, AM437x, DRA7x, and AM57x families,
      have different OPPs available for the MPU depending on which specific
      variant of the SoC is in use. This can be determined through use of the
      revision and an eFuse register present in the silicon. Introduce a
      ti-cpufreq driver that can read the aformentioned values and provide
      them as version matching data to the opp framework. Through this the
      opp-supported-hw dt binding that is part of the operating-points-v2
      table can be used to indicate availability of OPPs for each device.
      
      This driver also creates the "cpufreq-dt" platform_device after passing
      the version matching data to the OPP framework so that the cpufreq-dt
      handles the actual cpufreq implementation. Even without the necessary
      data to pass the version matching data the driver will still create this
      device to maintain backwards compatibility with operating-points v1
      tables.
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NDave Gerlach <d-gerlach@ti.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e13cf046
  14. 01 11月, 2016 3 次提交
  15. 25 4月, 2016 1 次提交
  16. 01 3月, 2016 1 次提交
    • A
      cpufreq: mediatek: allow building as a module · 3c2002ae
      Arnd Bergmann 提交于
      The MT8173 cpufreq driver can currently only be built-in, but
      it has a Kconfig dependency on the thermal core. THERMAL
      can be a loadable module, which in turn makes this driver
      impossible to build.
      
      It is nicer to make the cpufreq driver a module as well, so
      this patch turns the option in to a 'tristate' and adapts
      the dependency accordingly.
      
      The driver has no module_exit() function, so it will continue
      to not support unloading, but it can be built as a module
      and loaded at runtime now.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 5269e706 (cpufreq: Add ARM_MT8173_CPUFREQ dependency on THERMAL)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      3c2002ae
  17. 12 12月, 2015 2 次提交
    • L
      cpufreq: st: Provide runtime initialised driver for ST's platforms · ab0ea257
      Lee Jones 提交于
      The bootloader is charged with the responsibility to provide platform
      specific Dynamic Voltage and Frequency Scaling (DVFS) information via
      Device Tree.  This driver takes the supplied configuration and
      registers it with the new generic OPP framework, to then be used with
      CPUFreq.
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ab0ea257
    • A
      cpufreq: tegra: add regulator dependency for T124 · b5832e4b
      Arnd Bergmann 提交于
      This driver is the only one that calls regulator_sync_voltage(), but it
      can currently be built with CONFIG_REGULATOR disabled, producing
      this build error:
      
      drivers/cpufreq/tegra124-cpufreq.c: In function 'tegra124_cpu_switch_to_pllx':
      drivers/cpufreq/tegra124-cpufreq.c:68:2: error: implicit declaration of function 'regulator_sync_voltage' [-Werror=implicit-function-declaration]
        regulator_sync_voltage(priv->vdd_cpu_reg);
      
      My first attempt was to implement a helper for this function
      for regulator_sync_voltage, but Mark Brown explained:
      
         We don't do this for *all* regulator API functions - there's some where
         using them strongly suggests that there is actually a dependency on
         the regulator API.  This does seem like it might be falling into the
         specialist category [...]
         Looking at the code I'm pretty unclear on what the authors think the
         use of _sync_voltage() is doing in the first place so it may be even
         better to just remove the call.  It seems to have been included in the
         first commit so there's not changelog explaining things and there's
         no comment either.  I'd *expect* it to be a noop as far as I can see.
      
      This adds the dependency to make the driver always build successfully
      or not be enabled at all. Alternatively, we could investigate if the
      driver should stop calling regulator_sync_voltage instead.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: NJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b5832e4b
  18. 10 12月, 2015 1 次提交
  19. 24 11月, 2015 1 次提交
  20. 19 11月, 2015 1 次提交
    • A
      cpufreq: mediatek: fix build error · 2d4ee303
      Arnd Bergmann 提交于
      The recently added mt8173 cpufreq driver relies on the cpu topology
      that is always present on ARM64 but optional on ARM32:
      
      drivers/cpufreq/mt8173-cpufreq.c: In function 'mtk_cpufreq_init':
      drivers/cpufreq/mt8173-cpufreq.c:441:30: error: 'cpu_topology' undeclared (first use in this function)
        cpumask_copy(policy->cpus, &cpu_topology[policy->cpu].core_sibling);
      
      This refines the Kconfig dependencies so that we can still build on
      ARM32, but only if COMPILE_TEST is selected and the CPU topology
      code is present.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2d4ee303
  21. 13 10月, 2015 1 次提交
  22. 28 9月, 2015 1 次提交
  23. 05 9月, 2015 1 次提交
  24. 01 9月, 2015 1 次提交
    • P
      cpufreq: mediatek: Add MT8173 cpufreq driver · 1453863f
      Pi-Cheng Chen 提交于
      Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and
      2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage
      inputs, Vproc and Vsram are supplied by two regulators. For the big
      cluster, two regulators come from different PMICs. In this case, when
      scaling voltage inputs of the cluster, the voltages of two regulator
      inputs need to be controlled by software explicitly under the SoC
      specific limitation:
      
      	100mV < Vsram - Vproc < 200mV
      
      which is called 'voltage tracking' mechanism. And when scaling the
      frequency of cluster clock input, the input MUX need to be parented to
      another "intermediate" stable PLL first and reparented to the original
      PLL once the original PLL is stable at the target frequency. This patch
      implements those mechanisms to enable CPU DVFS support for Mediatek
      MT8173 SoC.
      Signed-off-by: NPi-Cheng Chen <pi-cheng.chen@linaro.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1453863f
  25. 14 8月, 2015 1 次提交
  26. 24 7月, 2015 1 次提交
  27. 16 7月, 2015 2 次提交
  28. 21 6月, 2015 1 次提交
  29. 15 5月, 2015 1 次提交
  30. 02 4月, 2015 1 次提交
  31. 01 2月, 2015 1 次提交
    • A
      cpufreq: exynos: allow modular build · 8b2b4a4e
      Arnd Bergmann 提交于
      The exynos cpufreq driver code recently gained a dependency on the
      cooling code, which may be a loadable module. This breaks an ARM
      allmodconfig build:
      
      drivers/built-in.o: In function `exynos_cpufreq_probe':
      :(.text+0x1748e8): undefined reference to `of_cpufreq_cooling_register'
      
      To avoid this problem, change cpufreq Kconfig to allow the drivers
      to be loadable modules as well and enforce a dependency on the
      thermal module.
      
      This change, in order to allow module builds on this cpufreq
      driver, properly constructs the driver into a single module,
      instead of several modules. The change also keeps the proper
      platform dependency, and therefore, it wont load in platforms
      that are not supposed to be loaded. The user will be able to
      build the support for all platforms, or select which platforms
      (s)he wants (as originally), except that now it can be a module,
      instead.
      
      Besides, it will still keep the driver only on those configs
      that expect it to be on. And it won't compile/load on platforms
      that it is not supposed to. It brings the config ARM_EXYNOS_CPU_FREQ_BOOST_SW
      closer to this driver, so it looks better in the menuconfig.
      
      We intentionally change ARM_EXYNOS5440_CPUFREQ to be tristate too, to
      avoid future troubles.
      
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-samsung-soc@vger.kernel.org
      Fixes: e725d26c ("cpufreq: exynos: Use device tree to determine if cpufreq cooling should be registered")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      8b2b4a4e
  32. 27 11月, 2014 1 次提交
  33. 03 10月, 2014 1 次提交
  34. 09 9月, 2014 1 次提交
  35. 05 9月, 2014 1 次提交
    • X
      ARM: cns3xxx: fix allmodconfig panic in pci driver · 0a2e912d
      Xia Kaixu 提交于
      The kernel panic occurs when running an allmodconfig kernel on
      OMAP4460. The inicall "cns3xxx_pcie_init" does not check which
      hardware it's running on and just tries to access to its specific
      registers. Now call it from .init_late callback from the two
      machine descriptors.
      Signed-off-by: NXia Kaixu <kaixu.xia@linaro.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Felix Fietkau <nbd@openwrt.org>
      Cc: Imre Kaloz <kaloz@openwrt.org>
      Cc: linaro-kernel@lists.linaro.org
      Cc: linux-arm-kernel@lists.infradead.org
      0a2e912d