diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2012-01-26 11:22:01 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-02-06 12:16:15 -0500 |
commit | 364c7c3f99c7ab79f6134ff0c55251d7ef77db8f (patch) | |
tree | 79306f3f015231968c6885be11d0f1c8b4fdaa91 /arch/arm | |
parent | f7223d3d1ba0e49423d0d5f7f60723b0cb42e621 (diff) |
ARM: tegra: definitions for flow controller
Introduce some definitions for the tegra flow contoller. This will be
used by the code which controls entering and leaving LP3.
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Colin Cross <ccross@android.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/flowctrl.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/flowctrl.h b/arch/arm/mach-tegra/flowctrl.h new file mode 100644 index 000000000000..74c6efbe52fa --- /dev/null +++ b/arch/arm/mach-tegra/flowctrl.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/flowctrl.h | ||
3 | * | ||
4 | * functions and macros to control the flowcontroller | ||
5 | * | ||
6 | * Copyright (c) 2010-2012, NVIDIA Corporation. All rights reserved. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms and conditions of the GNU General Public License, | ||
10 | * version 2, as published by the Free Software Foundation. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
15 | * more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #ifndef __MACH_TEGRA_FLOWCTRL_H | ||
22 | #define __MACH_TEGRA_FLOWCTRL_H | ||
23 | |||
24 | #define FLOW_CTRL_HALT_CPU0_EVENTS 0x0 | ||
25 | #define FLOW_CTRL_WAITEVENT (2 << 29) | ||
26 | #define FLOW_CTRL_WAIT_FOR_INTERRUPT (4 << 29) | ||
27 | #define FLOW_CTRL_JTAG_RESUME (1 << 28) | ||
28 | #define FLOW_CTRL_HALT_CPU_IRQ (1 << 10) | ||
29 | #define FLOW_CTRL_HALT_CPU_FIQ (1 << 8) | ||
30 | #define FLOW_CTRL_CPU0_CSR 0x8 | ||
31 | #define FLOW_CTRL_CSR_INTR_FLAG (1 << 15) | ||
32 | #define FLOW_CTRL_CSR_EVENT_FLAG (1 << 14) | ||
33 | #define FLOW_CTRL_CSR_ENABLE (1 << 0) | ||
34 | #define FLOW_CTRL_HALT_CPU1_EVENTS 0x14 | ||
35 | #define FLOW_CTRL_CPU1_CSR 0x18 | ||
36 | |||
37 | #endif | ||