Message ID | 1327594923-21822-2-git-send-email-pdeschrijver@nvidia.com |
---|---|
State | Accepted, archived |
Headers | show |
Hi, On Thu, Jan 26, 2012 at 8:22 AM, Peter De Schrijver <pdeschrijver@nvidia.com> wrote: > 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> Do you expect to use these defines anywhere else than in the sleep.S in the near future? If not, please just move them over to that file. -Olof -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Jan 26, 2012 at 6:17 PM, Olof Johansson <olof@lixom.net> wrote: > Hi, > > On Thu, Jan 26, 2012 at 8:22 AM, Peter De Schrijver > <pdeschrijver@nvidia.com> wrote: >> 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> > > Do you expect to use these defines anywhere else than in the sleep.S > in the near future? If not, please just move them over to that file. I just looked at the Tegra30 secondary cores patch series, it's used there. Please ignore. -Olof -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-tegra/flowctrl.h b/arch/arm/mach-tegra/flowctrl.h new file mode 100644 index 0000000..74c6efb --- /dev/null +++ b/arch/arm/mach-tegra/flowctrl.h @@ -0,0 +1,37 @@ +/* + * arch/arm/mach-tegra/flowctrl.h + * + * functions and macros to control the flowcontroller + * + * Copyright (c) 2010-2012, NVIDIA Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __MACH_TEGRA_FLOWCTRL_H +#define __MACH_TEGRA_FLOWCTRL_H + +#define FLOW_CTRL_HALT_CPU0_EVENTS 0x0 +#define FLOW_CTRL_WAITEVENT (2 << 29) +#define FLOW_CTRL_WAIT_FOR_INTERRUPT (4 << 29) +#define FLOW_CTRL_JTAG_RESUME (1 << 28) +#define FLOW_CTRL_HALT_CPU_IRQ (1 << 10) +#define FLOW_CTRL_HALT_CPU_FIQ (1 << 8) +#define FLOW_CTRL_CPU0_CSR 0x8 +#define FLOW_CTRL_CSR_INTR_FLAG (1 << 15) +#define FLOW_CTRL_CSR_EVENT_FLAG (1 << 14) +#define FLOW_CTRL_CSR_ENABLE (1 << 0) +#define FLOW_CTRL_HALT_CPU1_EVENTS 0x14 +#define FLOW_CTRL_CPU1_CSR 0x18 + +#endif
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> --- arch/arm/mach-tegra/flowctrl.h | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-tegra/flowctrl.h