1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * arch/arm/mach-tegra/cpuidle.c
5 * CPU idle driver for Tegra CPUs
7 * Copyright (c) 2010-2012, NVIDIA Corporation.
8 * Copyright (c) 2011 Google, Inc.
9 * Author: Colin Cross <ccross@android.com>
10 * Gary King <gking@nvidia.com>
12 * Rework for 3.3 by Peter De Schrijver <pdeschrijver@nvidia.com>
15 #include <linux/kernel.h>
16 #include <linux/module.h>
18 #include <soc/tegra/fuse.h>
22 void __init
tegra_cpuidle_init(void)
24 switch (tegra_get_chip_id()) {
26 if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC
))
27 tegra20_cpuidle_init();
30 if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SOC
))
31 tegra30_cpuidle_init();
35 if (IS_ENABLED(CONFIG_ARCH_TEGRA_114_SOC
) ||
36 IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC
))
37 tegra114_cpuidle_init();
42 void tegra_cpuidle_pcie_irqs_in_use(void)
44 switch (tegra_get_chip_id()) {
46 if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC
))
47 tegra20_cpuidle_pcie_irqs_in_use();