summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
Commit message (Collapse)AuthorAge
* clocksource: timer: t186: add timer suspend hooksumitg2018-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding syscore suspend hook to disable timer for boot core and function to enable irq on boot core during resume. Also, clearing interrupts after disabling timer on all cores. Change is done to fix scenario where SC7 entry fails due to unserviced interrupt if the timer interrupt is generated after disabling local irq delivery on boot core and before doing SC7 entry check in ATF as an interrupt is pending to be serviced. During suspend, disabling timer on boot core will stop any new timer interrupt. And clearing timer interrupts after disabling timer on all cores will make sure no interrupt is pending before checking SC7 entry. Bug 2241914 Change-Id: I86dff69c52ea300f5cce873f8ba96909b478f5de Signed-off-by: sumitg <sumitg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1950654 (cherry picked from commit 223db81591e953c11391d580b2c9aa234c74818c) Reviewed-on: https://git-master.nvidia.com/r/1952102 GVS: Gerrit_Virtual_Submit Reviewed-by: Leon Yu <leoyu@nvidia.com> Tested-by: Leon Yu <leoyu@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* nvidia: use kernel overlay featuresStephen Warren2017-10-29
| | | | | | | | | | | | | | | | Update all Kconfig files and Makefiles to rely on the kernel overlay feature. In particular, don't include any Kconfig files or Makefiles from other overlays. -I directives in CFLAGS are not yet cleaned up. Bug 1978395 Change-Id: I425d37d55f8ea61fb3a082a1504f994ff30cec03 Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1561187 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers: linsim removalWilliam Pierce2017-07-26
| | | | | | | | | | | | | | | | Removed multiple tegra_platform_is_linsim if statements because of linsim deprecation. Bug 1903831 Change-Id: I53f882a9700532e912da19eff83b0e91ba2526be Signed-off-by: William Pierce <wpierce@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1523447 Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: Ujwal Patel <ujwalp@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
* nvidia: Setting proper names to Makefiles & KconfigIshan Mittal2017-06-08
| | | | | | | | | | | | | | | Makefiles and Kconfig files are picked up based on project name being the extension. Makefiles and Kconfig files brought over from t18x have .t18x suffix. Changed to .nvidia Bug 200295104 Change-Id: Idade26f293c1faaf74f53b2ab20798c47652bdb9 Signed-off-by: Ishan Mittal <imittal@nvidia.com>
* clocksource: t186: remove unbalanced of_node_putTimo Alho2017-05-24
| | | | | | | | | | | | | | Remove unbalanced of_node_put from tegra186 clocksource driver. Bug 1904474 Change-Id: I1e17b11d2256c187fe69eab16e7172a5c5ad8ff1 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/1487662 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> GVS: Gerrit_Virtual_Submit
* timer: add support for tegra timerAniruddha Banerjee2017-04-20
| | | | | | | | | | | | | | | | This patch adds support for the tegra timer in the new cpu hotplug framework. Bug 1859909 Change-Id: I5350cded87db80024084a3d39bbf6ea0942550ee Signed-off-by: Aniruddha Banerjee <aniruddhab@nvidia.com> Reviewed-on: http://git-master/r/1305597 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com>
* clk: replace PLATFORM_TEGRA with ARCH_TEGRAVenkat Reddy Talla2017-01-27
| | | | | | | | | | | | | | | | Replacing PLATFORM_TEGRA with ARCH_TEGRA flag to build clock module,ARCH_TEGRA is enabeld in both tegra18 and tegra12 defconfigs, to align with mainline we are going to use ARCH_TEGRA for tegra platforms and deprecating PLATFROM_TEGRA flag. Bug 200256189 Change-Id: If7c9b719cb0cac3bab4e551568d73b42916c36be Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com> Reviewed-on: http://git-master/r/1293784 Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
* t18x: drivers: use soc/tegra/chip-id.h for soc headerShardar Shariff Md2017-01-21
| | | | | | | | | | | | The soc tegra headers are unified and moved all the content of linux/tegra-soc.h to the soc/tegra/chip-id.h to have the single soc header for Tegra. Change-Id: I67a95258775e50add4ab9872e4525910b14ff99c Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com> Reviewed-on: http://git-master/r/1291661 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* t18x: renaming KConfigs & Makefiles to add suffixdmitry pervushin2016-07-22
| | | | | | | | | | | | | Bug 1783210 Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Change-Id: I20c29b4dd5947d296a6ab1e83d47e569e386855b Reviewed-on: http://git-master/r/1176347 Reviewed-on: http://git-master/r/1177303 GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/1183017
* clockevents: migrate to new 'set-state' interfaceAlex Van Brunt2016-04-11
| | | | | | | | | | | Migrate the tegra186 to the new 'set-state' interface provided by the clockevents core. Allow the driver to compile against the old 'set-mode' interface as well. Change-Id: I9ea63c8357e15dd279a955c529f104ba505d0ad2 Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/1123775 GVS: Gerrit_Virtual_Submit
* clocksource: timers: restore timers after sc7Prashant Gaikwad2015-11-25
| | | | | | | | | | | | | | | | Timers lose context in SC7. Reprogram interrupt map and clock source in system resume. Bug 200138959 Change-Id: I94a2777357cd36fa12764fcd60dac4a5f2e426c7 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/835428 (cherry picked from commit ced8a570b626e782522515dc738f950a2092767e) Reviewed-on: http://git-master/r/837140 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
* clocksource: update tegra18 clocksource to use OSCAlex Van Brunt2015-11-19
| | | | | | | | | | | | | | | | | | | | | | | The TSC is used to clock the bus for the TKE. Therefore it cannot be halted while debugging because any access will hang. However, the TKE needs to stop the timers durring debug. The solution is to keep the TSC running but use OSC to driver the timers and then to halt the timer in debug. This patch switches the timers to use OSC instead of TSC as the time source. The clk "osc" is not available at the time that the timer registers itself. This is because tegra186-clocks is registered later. Therefore, this driver must rely on the frequency in the device-tree for OSC. Bug 1702499 Change-Id: I33dc31c82c2e42aed5490ad94d139b05341e516e Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/826464 Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com> Tested-by: Jinyoung Park <jinyoungp@nvidia.com> GVS: Gerrit_Virtual_Submit
* t18x: clocksource: Update timer interrupt for cpu resumeKrishna Sitaraman2015-10-02
| | | | | | | | | | | Upon cpu resume/onlining enable timer interrupt. Also make the interrupt percpu. Change-Id: I39cd20ee26fc04417ccace99dc109be788acf97b Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com> Reviewed-on: http://git-master/r/802480 Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
* clocksource: tegra18 clocksourceAlex Van Brunt2015-09-29
Add a driver for the TMR / TKE module. This timer is outside of the CPUs. That allows it to continue running while the CPU os powered off. bug 1674769 Change-Id: I5bb0f2b9d60fb49e64a19dadc62b1decb1753078 Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/795345 Reviewed-by: Richard Wiley <rwiley@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: http://git-master/r/783905