Yen Lin | 6570438 | 2012-04-10 05:17:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010, 2011 |
| 3 | * NVIDIA Corporation <www.nvidia.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Yen Lin | 6570438 | 2012-04-10 05:17:02 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _WARMBOOT_AVP_H_ |
| 9 | #define _WARMBOOT_AVP_H_ |
| 10 | |
| 11 | #define TEGRA_DEV_L 0 |
| 12 | #define TEGRA_DEV_H 1 |
| 13 | #define TEGRA_DEV_U 2 |
| 14 | |
| 15 | #define SIMPLE_PLLX (CLOCK_ID_XCPU - CLOCK_ID_FIRST_SIMPLE) |
| 16 | #define SIMPLE_PLLE (CLOCK_ID_EPCI - CLOCK_ID_FIRST_SIMPLE) |
| 17 | |
| 18 | #define TIMER_USEC_CNTR (NV_PA_TMRUS_BASE + 0) |
| 19 | #define TIMER_USEC_CFG (NV_PA_TMRUS_BASE + 4) |
| 20 | |
| 21 | #define USEC_CFG_DIVISOR_MASK 0xffff |
| 22 | |
| 23 | #define CONFIG_CTL_TBE (1 << 7) |
| 24 | #define CONFIG_CTL_JTAG (1 << 6) |
| 25 | |
| 26 | #define CPU_RST (1 << 0) |
| 27 | #define CLK_ENB_CPU (1 << 0) |
| 28 | #define SWR_TRIG_SYS_RST (1 << 2) |
| 29 | #define SWR_CSITE_RST (1 << 9) |
| 30 | |
| 31 | #define PWRGATE_STATUS_CPU (1 << 0) |
| 32 | #define PWRGATE_TOGGLE_PARTID_CPU (0 << 0) |
| 33 | #define PWRGATE_TOGGLE_START (1 << 8) |
| 34 | |
| 35 | #define CPU_CMPLX_CPU_BRIDGE_CLKDIV_4 (3 << 0) |
| 36 | #define CPU_CMPLX_CPU0_CLK_STP_STOP (1 << 8) |
| 37 | #define CPU_CMPLX_CPU0_CLK_STP_RUN (0 << 8) |
| 38 | #define CPU_CMPLX_CPU1_CLK_STP_STOP (1 << 9) |
| 39 | #define CPU_CMPLX_CPU1_CLK_STP_RUN (0 << 9) |
| 40 | |
| 41 | #define CPU_CMPLX_CPURESET0 (1 << 0) |
| 42 | #define CPU_CMPLX_CPURESET1 (1 << 1) |
| 43 | #define CPU_CMPLX_DERESET0 (1 << 4) |
| 44 | #define CPU_CMPLX_DERESET1 (1 << 5) |
| 45 | #define CPU_CMPLX_DBGRESET0 (1 << 12) |
| 46 | #define CPU_CMPLX_DBGRESET1 (1 << 13) |
| 47 | |
| 48 | #define PLLM_OUT1_RSTN_RESET_DISABLE (1 << 0) |
| 49 | #define PLLM_OUT1_CLKEN_ENABLE (1 << 1) |
| 50 | #define PLLM_OUT1_RATIO_VAL_8 (8 << 8) |
| 51 | |
| 52 | #define SCLK_SYS_STATE_IDLE (1 << 28) |
| 53 | #define SCLK_SWAKE_FIQ_SRC_PLLM_OUT1 (7 << 12) |
| 54 | #define SCLK_SWAKE_IRQ_SRC_PLLM_OUT1 (7 << 8) |
| 55 | #define SCLK_SWAKE_RUN_SRC_PLLM_OUT1 (7 << 4) |
| 56 | #define SCLK_SWAKE_IDLE_SRC_PLLM_OUT1 (7 << 0) |
| 57 | |
| 58 | #define EVENT_ZERO_VAL_20 (20 << 0) |
| 59 | #define EVENT_MSEC (1 << 24) |
| 60 | #define EVENT_JTAG (1 << 28) |
| 61 | #define EVENT_MODE_STOP (2 << 29) |
| 62 | |
| 63 | #define CCLK_PLLP_BURST_POLICY 0x20004444 |
| 64 | |
| 65 | #endif |