diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-24 17:06:52 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-28 08:59:01 +0100 |
commit | 0a2096b7e3db4167a12e8bc660c1c43cd63e9bc4 (patch) | |
tree | b1d54380a21d793f2933c3727b2fee97d01cbb2e /c/src/lib/libbsp/sparc/leon3/include/leon.h | |
parent | bsps: Delete LEON3_FATAL_CPU_COUNTER_INIT (diff) | |
download | rtems-0a2096b7e3db4167a12e8bc660c1c43cd63e9bc4.tar.bz2 |
bsp/leon3: Use ambapp_freq_get() for CPU counter
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/include/leon.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/leon.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h index e4710cde7d..a2c9bc6bc3 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h @@ -280,6 +280,13 @@ extern rtems_interrupt_lock LEON3_IrqCtrl_Lock; #define LEON3_CLOCK_INDEX 0 #endif +/* + * We assume that a boot loader (usually GRMON) initialized the GPTIMER 0 to + * run with 1MHz. This is used to determine all clock frequencies of the PnP + * devices. See also ambapp_freq_init() and ambapp_freq_get(). + */ +#define LEON3_GPTIMER_0_FREQUENCY_SET_BY_BOOT_LOADER 1000000 + /* Load 32-bit word by forcing a cache-miss */ static inline unsigned int leon_r32_no_cache(uintptr_t addr) { |