diff options
author | Ben Gras <beng@shrike-systems.com> | 2014-11-03 19:52:03 +0100 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-03 14:19:47 -0600 |
commit | b51842bb38ec00a638495f825f329bba580825f7 (patch) | |
tree | 6b9f118cc42537417f9755c44215fe2e155cc6ee /c/src/lib/libcpu/arm/shared/include/omap_timer.h | |
parent | cpuuse: Resolve compile errors. (diff) | |
download | rtems-b51842bb38ec00a638495f825f329bba580825f7.tar.bz2 |
Add some generic ARM am335x and omap definitions
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/arm/shared/include/omap_timer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/arm/shared/include/omap_timer.h b/c/src/lib/libcpu/arm/shared/include/omap_timer.h new file mode 100644 index 0000000000..ef8787a571 --- /dev/null +++ b/c/src/lib/libcpu/arm/shared/include/omap_timer.h @@ -0,0 +1,39 @@ +/** + * @file + * + * @brief Clock driver configuration. + */ + +#include <stdint.h> + +typedef struct omap_timer_registers +{ + uint32_t TIDR; + uint32_t TIOCP_CFG; + uint32_t TISTAT; + uint32_t TISR; + uint32_t TIER; + uint32_t TWER; + uint32_t TCLR; + uint32_t TCRR; + uint32_t TLDR; + uint32_t TTGR; + uint32_t TWPS; + uint32_t TMAR; + uint32_t TCAR1; + uint32_t TSICR; + uint32_t TCAR2; + uint32_t TPIR; + uint32_t TNIR; + uint32_t TCVR; + uint32_t TOCR; + uint32_t TOWR; + +} omap_timer_registers_t; + +typedef struct omap_timer +{ + uint32_t base; + int irq_nr; + struct omap_timer_registers *regs; +} omap_timer_t; |