]> git.proxmox.com Git - mirror_edk2.git/blame - Omap35xxPkg/Include/Omap3530/Omap3530Timer.h
Omap35xxPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Omap35xxPkg / Include / Omap3530 / Omap3530Timer.h
CommitLineData
1e57a462 1/** @file\r
2\r
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
4\r
538311f7 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
1e57a462 6\r
7**/\r
8\r
9#ifndef __OMAP3530TIMER_H__\r
10#define __OMAP3530TIMER_H__\r
11\r
12#define GPTIMER1_BASE (0x48313000)\r
13#define GPTIMER2_BASE (0x49032000)\r
14#define GPTIMER3_BASE (0x49034000)\r
15#define GPTIMER4_BASE (0x49036000)\r
16#define GPTIMER5_BASE (0x49038000)\r
17#define GPTIMER6_BASE (0x4903A000)\r
18#define GPTIMER7_BASE (0x4903C000)\r
19#define GPTIMER8_BASE (0x4903E000)\r
20#define GPTIMER9_BASE (0x49040000)\r
21#define GPTIMER10_BASE (0x48086000)\r
22#define GPTIMER11_BASE (0x48088000)\r
23#define GPTIMER12_BASE (0x48304000)\r
24#define WDTIMER2_BASE (0x48314000)\r
25\r
26#define GPTIMER_TIOCP_CFG (0x0010)\r
27#define GPTIMER_TISTAT (0x0014)\r
28#define GPTIMER_TISR (0x0018)\r
29#define GPTIMER_TIER (0x001C)\r
30#define GPTIMER_TWER (0x0020)\r
31#define GPTIMER_TCLR (0x0024)\r
32#define GPTIMER_TCRR (0x0028)\r
33#define GPTIMER_TLDR (0x002C)\r
34#define GPTIMER_TTGR (0x0030)\r
35#define GPTIMER_TWPS (0x0034)\r
36#define GPTIMER_TMAR (0x0038)\r
37#define GPTIMER_TCAR1 (0x003C)\r
38#define GPTIMER_TSICR (0x0040)\r
39#define GPTIMER_TCAR2 (0x0044)\r
40#define GPTIMER_TPIR (0x0048)\r
41#define GPTIMER_TNIR (0x004C)\r
42#define GPTIMER_TCVR (0x0050)\r
43#define GPTIMER_TOCR (0x0054)\r
44#define GPTIMER_TOWR (0x0058)\r
45\r
46#define WSPR (0x048)\r
47\r
48#define TISR_TCAR_IT_FLAG_MASK BIT2\r
49#define TISR_OVF_IT_FLAG_MASK BIT1\r
50#define TISR_MAT_IT_FLAG_MASK BIT0\r
51#define TISR_ALL_INTERRUPT_MASK (TISR_TCAR_IT_FLAG_MASK | TISR_OVF_IT_FLAG_MASK | TISR_MAT_IT_FLAG_MASK)\r
52\r
53#define TISR_TCAR_IT_FLAG_NOT_PENDING (0UL << 2)\r
54#define TISR_OVF_IT_FLAG_NOT_PENDING (0UL << 1)\r
55#define TISR_MAT_IT_FLAG_NOT_PENDING (0UL << 0)\r
56#define TISR_NO_INTERRUPTS_PENDING (TISR_TCAR_IT_FLAG_NOT_PENDING | TISR_OVF_IT_FLAG_NOT_PENDING | TISR_MAT_IT_FLAG_NOT_PENDING)\r
57\r
58#define TISR_TCAR_IT_FLAG_CLEAR BIT2\r
59#define TISR_OVF_IT_FLAG_CLEAR BIT1\r
60#define TISR_MAT_IT_FLAG_CLEAR BIT0\r
61#define TISR_CLEAR_ALL (TISR_TCAR_IT_FLAG_CLEAR | TISR_OVF_IT_FLAG_CLEAR | TISR_MAT_IT_FLAG_CLEAR)\r
62\r
63#define TCLR_AR_AUTORELOAD BIT1\r
64#define TCLR_AR_ONESHOT (0UL << 1)\r
65#define TCLR_ST_ON BIT0\r
66#define TCLR_ST_OFF (0UL << 0)\r
67\r
68#define TIER_TCAR_IT_ENABLE (BIT2\r
69#define TIER_TCAR_IT_DISABLE (0UL << 2)\r
70#define TIER_OVF_IT_ENABLE BIT1\r
71#define TIER_OVF_IT_DISABLE (0UL << 1)\r
72#define TIER_MAT_IT_ENABLE BIT0\r
73#define TIER_MAT_IT_DISABLE (0UL << 0)\r
74\r
75#endif // __OMAP3530TIMER_H__\r
76\r