Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ba02a215
Commit
ba02a215
authored
Jan 16, 2010
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: Improve documentation in arm_timer.h
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
a285edcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
arch/arm/include/asm/hardware/arm_timer.h
arch/arm/include/asm/hardware/arm_timer.h
+24
-15
No files found.
arch/arm/include/asm/hardware/arm_timer.h
View file @
ba02a215
#ifndef __ASM_ARM_HARDWARE_ARM_TIMER_H
#define __ASM_ARM_HARDWARE_ARM_TIMER_H
#define TIMER_LOAD 0x00
#define TIMER_VALUE 0x04
#define TIMER_CTRL 0x08
#define TIMER_CTRL_ONESHOT (1 << 0)
#define TIMER_CTRL_32BIT (1 << 1)
#define TIMER_CTRL_DIV1 (0 << 2)
#define TIMER_CTRL_DIV16 (1 << 2)
#define TIMER_CTRL_DIV256 (2 << 2)
#define TIMER_CTRL_IE (1 << 5)
/* Interrupt Enable (versatile only) */
#define TIMER_CTRL_PERIODIC (1 << 6)
#define TIMER_CTRL_ENABLE (1 << 7)
/*
* ARM timer implementation, found in Integrator, Versatile and Realview
* platforms. Not all platforms support all registers and bits in these
* registers, so we mark them with A for Integrator AP, C for Integrator
* CP, V for Versatile and R for Realview.
*
* Integrator AP has 16-bit timers, Integrator CP, Versatile and Realview
* can have 16-bit or 32-bit selectable via a bit in the control register.
*/
#define TIMER_LOAD 0x00
/* ACVR rw */
#define TIMER_VALUE 0x04
/* ACVR ro */
#define TIMER_CTRL 0x08
/* ACVR rw */
#define TIMER_CTRL_ONESHOT (1 << 0)
/* CVR */
#define TIMER_CTRL_32BIT (1 << 1)
/* CVR */
#define TIMER_CTRL_DIV1 (0 << 2)
/* ACVR */
#define TIMER_CTRL_DIV16 (1 << 2)
/* ACVR */
#define TIMER_CTRL_DIV256 (2 << 2)
/* ACVR */
#define TIMER_CTRL_IE (1 << 5)
/* VR */
#define TIMER_CTRL_PERIODIC (1 << 6)
/* ACVR */
#define TIMER_CTRL_ENABLE (1 << 7)
/* ACVR */
#define TIMER_INTCLR 0x0c
#define TIMER_RIS 0x10
#define TIMER_MIS 0x14
#define TIMER_BGLOAD 0x18
#define TIMER_INTCLR 0x0c
/* ACVR wo */
#define TIMER_RIS 0x10
/* CVR ro */
#define TIMER_MIS 0x14
/* CVR ro */
#define TIMER_BGLOAD 0x18
/* CVR rw */
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment