diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-09-03 14:04:16 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-09-07 20:29:39 +0200 |
commit | 40f49d11cf555433f13a0827c0f7f6c5bdd40265 (patch) | |
tree | 6c8fe99006aa64a2cf09830cc17ee040140c4f21 /c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h | |
parent | arm/raspberrypi: basic BCM2836 SMP implementation. (diff) | |
download | rtems-40f49d11cf555433f13a0827c0f7f6c5bdd40265.tar.bz2 |
arm/raspberrypi: correct and extend definitions for GPU timer.
Diffstat (limited to 'c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h')
-rw-r--r-- | c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h b/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h index 2f42731b35..e442d5fca5 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h +++ b/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h @@ -264,13 +264,17 @@ */ #define BCM2835_GPU_TIMER_BASE (RPI_PERIPHERAL_BASE + 0x3000) -#define BCM2835_GPU_TIMER_CS (BCM2835_TIMER_BASE + 0x00) -#define BCM2835_GPU_TIMER_CLO (BCM2835_TIMER_BASE + 0x04) -#define BCM2835_GPU_TIMER_CHI (BCM2835_TIMER_BASE + 0x08) -#define BCM2835_GPU_TIMER_C0 (BCM2835_TIMER_BASE + 0x0C) -#define BCM2835_GPU_TIMER_C1 (BCM2835_TIMER_BASE + 0x10) -#define BCM2835_GPU_TIMER_C2 (BCM2835_TIMER_BASE + 0x14) -#define BCM2835_GPU_TIMER_C3 (BCM2835_TIMER_BASE + 0x18) +#define BCM2835_GPU_TIMER_CS (BCM2835_GPU_TIMER_BASE + 0x00) +#define BCM2835_GPU_TIMER_CS_M0 0x00000001 +#define BCM2835_GPU_TIMER_CS_M1 0x00000002 +#define BCM2835_GPU_TIMER_CS_M2 0x00000004 +#define BCM2835_GPU_TIMER_CS_M3 0x00000008 +#define BCM2835_GPU_TIMER_CLO (BCM2835_GPU_TIMER_BASE + 0x04) +#define BCM2835_GPU_TIMER_CHI (BCM2835_GPU_TIMER_BASE + 0x08) +#define BCM2835_GPU_TIMER_C0 (BCM2835_GPU_TIMER_BASE + 0x0C) +#define BCM2835_GPU_TIMER_C1 (BCM2835_GPU_TIMER_BASE + 0x10) +#define BCM2835_GPU_TIMER_C2 (BCM2835_GPU_TIMER_BASE + 0x14) +#define BCM2835_GPU_TIMER_C3 (BCM2835_GPU_TIMER_BASE + 0x18) /** @} */ |