summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/gic.c
AgeCommit message (Collapse)Author
2012-06-28ARM: tegra: Disable CPU interface in power gatingBo Yan
CPU interface needs to be disabled to avoid race condition. Simply disabling legacy pass-through is not enough. Change-Id: I4202d870036b137bdfd3b1d32a5781e2ef65ead9 Reviewed-on: http://git-master/r/105235 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Bo Yan <byan@nvidia.com> Reviewed-by: Mark Stadler <mastadler@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com>
2012-06-28ARM: tegra: Fix argument name for GIC functionBo Yan
The argument "pass_through" of function tegra_gic_cpu_disable is confusing. If it's true, it actually means "to disable" pass-through. Change it to "disable_pass_through" to reflect what it really is. Change-Id: I4a08b8965641af913ebb626c81cdac3382a995a0 Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/103729 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-06-28ARM: tegra: Define accessor for gic versionBo Yan
Accessor function is defined to return GIC version in system. Since the returned value is u32, read out the GIC version number directly from GIC ICPIDR2 register instead of forcing it to 2 as implied in CortexA15 implementation or 1 in CortexA9. Change-Id: Ib7a948656faf9552aef1bb3effa28f827c17d0f1 Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/103728 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mark Stadler <mastadler@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Jeff Smith <jsmith@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-06-22ARM: gic: Add missing header inclusionScott Williams
Change-Id: I9819a85a52820deed4359dfd62edb3b88d37e351 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/79539 Reviewed-by: Automatic_Commit_Validation_User
2012-06-22ARM: tegra: Remove GIC bypass mode for hotplugScott Williams
Every call to tegra_gic_pass_through_disable() is preceded by a call to tegra_gic_cpu_disable(). However, the call from hotplug shutdown is superfluous on Cortex-A9 and wrong on Cortex-A15. Consolidate the two disable functions into a single function taking a parameter that indicates whether to enable bypass mode: the call from the hotplug shutdown path does not enable bypass, the call from the CPU suspend path does. BUG 929216 Change-Id: I0b11dc89b27aeb42b3ddffb0cfe1a65eb7a50f93 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/79092 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jin Qian <jqian@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-06-22ARM: tegra: Reprogram GIC CPU interface on CPU PM entryScott Williams
To prevent race conditions and ensure proper interrupt routing on Cortex-A15 CPUs when they are power-gated, add a CPU PM notifier call-back to reprogram the GIC CPU interface on PM entry. The GIC CPU interface will be reset back to its normal state by the common GIC CPU PM exit callback when the CPU wakes up. BUG 929216 Change-Id: I2280468a001b41ca2a9db8edfcd7bd65f82b1fcd Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/79091 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Jin Qian <jqian@nvidia.com>
2012-06-22ARM: tegra: Co-locate all GIC functionsScott Williams
Move Tegra GIC initialization to be with the other GIC functions. Change-Id: I1d0af10724886588b74a7b7633a112d78aa54a53 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/78844 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Bond <rbond@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Jeff Smith <jsmith@nvidia.com> Reviewed-by: Jin Qian <jqian@nvidia.com>
2012-03-22ARM: tegra: Co-locate all GIC functionsScott Williams
Move Tegra GIC initialization to be with the other GIC functions. Change-Id: I9b23757d135f3a9062f21fccb816c745ce8add43 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/78829 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Mark Stadler <mastadler@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Rebase-Id: R5358b96db428c5ef7a21bc9db59838106901870b
2012-03-22ARM: tegra: Add Tegra GIC extensionsScott Williams
Implement extensions to the standard ARM GIC API for Tegra3 power management. Change-Id: If8b2ce2b366e48bb5ca82d3de2acab1fd0a81bb9 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Rebase-Id: Rd7527cd57edf054c871f5d04d7e9185643f79843