soc/tegra: Move Tegra flowctrl driver
authorJon Hunter <jonathanh@nvidia.com>
Tue, 28 Mar 2017 12:42:54 +0000 (13:42 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 4 Apr 2017 13:48:04 +0000 (15:48 +0200)
commit7e10cf743634a6b0f3cf63046c49294b38254fe9
tree8a13813e246ec3e5abbb0de3da93bec4baf517da
parent07d76e953b5ec616f3d4c2d807e911e37312dc72
soc/tegra: Move Tegra flowctrl driver

The flowctrl driver is required for both ARM and ARM64 Tegra devices
and in order to enable support for it for ARM64, move the Tegra flowctrl
driver into drivers/soc/tegra.

By moving the flowctrl driver, tegra_flowctrl_init() is now called by
via an early initcall and to prevent this function from attempting to
mapping IO space for a non-Tegra device, a test for 'soc_is_tegra()'
is also added.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
14 files changed:
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/cpuidle-tegra20.c
arch/arm/mach-tegra/flowctrl.c [deleted file]
arch/arm/mach-tegra/flowctrl.h [deleted file]
arch/arm/mach-tegra/platsmp.c
arch/arm/mach-tegra/pm.c
arch/arm/mach-tegra/reset-handler.S
arch/arm/mach-tegra/sleep-tegra20.S
arch/arm/mach-tegra/sleep-tegra30.S
arch/arm/mach-tegra/tegra.c
drivers/soc/tegra/Kconfig
drivers/soc/tegra/Makefile
drivers/soc/tegra/flowctrl.c [new file with mode: 0644]
include/soc/tegra/flowctrl.h [new file with mode: 0644]