summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/timer/gptimer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move benchmark timer to bspsSebastian Huber2018-04-201-544/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* Include missing <string.h>Sebastian Huber2017-08-251-0/+1
| | | | Update #2133.
* score: Introduce _SMP_Get_online_processors()Sebastian Huber2017-07-071-1/+1
| | | | Update #3059.
* leon, gptimer: offset intnum with subtimer indexMartin Aberg2017-05-021-1/+7
| | | | | If separate interrupts are not available, then do not add the timer hardware index number when configuring interrupt affinity.
* leon, gptimer: fixed probing separate interruptsMartin Aberg2017-05-021-1/+1
| | | | | | Probing of separate interrupts was done by storing the GPTIMER_CFG_SI bit. But it was never actually stored since it is bit 8 and the datatype is 8-bit. Now store the AND result as boolean value instead.
* leon, clock: new driver manager clock driverMartin Aberg2017-05-021-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Compatible with SMP - Selects timecounter depending on features available - Fixes problem with time going to fast on SMP This is an implementation of the RTEMS "clockdrv_shell" interface for LEON2/3/4 systems using the Driver Manager. It is clock hardware agnostic and compatible with SMP and UP. Availability of free running counters is probed and selected as needed. GR740: RTEMS TESTSUITE FAILURE SUMMARY Result Test ExecRes ConsoleRes ExitCode1 ExitCode2 FAIL: ./fstests/imfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/jffs2_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mdosfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mimfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mrfs_fsscandir01 OK FAIL 5 0 FAIL: ./psxtests/psxshm01 FAIL FAIL N/A N/A FAIL: ./psxtests/psxshm02 FAIL FAIL N/A N/A FAIL: ./sptests/spinternalerror01 OK N/A -559038737 1611526157 FAIL: ./sptests/sptimecounter01 OK N/A 5 0 SUMMARY Tests failing: 9 Tests successful: 578 --- GR712RC: RTEMS TESTSUITE FAILURE SUMMARY Result Test ExecRes ConsoleRes ExitCode1 ExitCode2 FAIL: ./smptests/smpipi01 FAIL FAIL N/A N/A FAIL: ./smptests/smpthreadlife01 FAIL FAIL N/A N/A FAIL: ./fstests/imfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/jffs2_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mdosfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mimfs_fsscandir01 OK FAIL 5 0 FAIL: ./fstests/mrfs_fsscandir01 OK FAIL 5 0 FAIL: ./psxtests/psxshm01 FAIL FAIL N/A N/A FAIL: ./psxtests/psxshm02 FAIL FAIL N/A N/A FAIL: ./sptests/spinternalerror01 OK N/A -559038737 1611526157 FAIL: ./sptests/sptimecounter01 OK N/A 5 0 SUMMARY Tests failing: 11 Tests successful: 576
* leon, tlib: added timer width mask informationDaniel Hellstrom2017-05-021-0/+16
|
* leon, gptimer: start/reset must take RS and IP into accountDaniel Hellstrom2017-03-061-2/+4
|
* LEON3: gptimer drvmgr init simplified wrt bootDaniel Hellstrom2015-04-171-40/+6
|
* DRVMGR: KEY_TYPE now a enum drvmgr_ktDaniel Hellstrom2015-04-171-4/+4
|
* sparc bsps: updated license to rtems.orgDaniel Hellstrom2015-04-171-1/+1
|
* LEON: move driver headers to bsp/ directoryDaniel Hellstrom2015-04-171-2/+2
|
* GPTIMER: move ISR install from init1Daniel Hellstrom2015-04-171-11/+18
| | | | | To avoid install ISRs during init level 1 the ISR install is moved to the opening/initialization of the timer.
* GPTIMER: fix build warningsDaniel Hellstrom2015-04-171-3/+6
|
* GPTIMER: avoid build warningsDaniel Hellstrom2015-04-171-10/+10
|
* GRTIMER: added to GPTIMER driverDaniel Hellstrom2015-04-171-0/+1
| | | | | GRTIMER is compatible with GPTIMER, however the GPTIMER driver does not support the extended features of GRTIMER.
* GPTIMER: timer probing must not be on timer0Daniel Hellstrom2015-04-171-2/+2
| | | | | | | | | | | | Timers are identical within one GPTIMER core. Probing only the first timer is sufficient, however the first timer was hardcoded to timer0 which is not correct in a multi-OS system like RTEMS AMP. This patch makes sure that probing is done on the first timer that can be used by this RTEMS instance. Without this patch RTEMS AMP is broken on systems (like the GR712RC) where there is only one GPTIMER core proviing multiple timers. Designs (like the NGMP/FP) where there are multiple GPTIMER cores are not affected.
* GPTIMER: support separate & shared irq by clearing pending bit after ISRDaniel Hellstrom2015-04-171-3/+5
|
* GPTIMER: Only probe pending bit on timer0Daniel Hellstrom2015-04-171-10/+12
|
* LEON3: fixed nano seconds support in TLIBDaniel Hellstrom2015-04-171-11/+34
| | | | | | | | | | | | | | | | The _Watchdog_Nanoseconds_since_tick_handler() function caller does not take into account that the timer counter may wrap, underflow or overflow. Instead, the driver must take that into account. This GPTIMER DrvMgr driver patch makes use of the IRQ-Pending bit to determine if a underflow has happened. In that case a greater time than one tick is returned (even considering the function name..). The TLIB clock layer must also ACK the interrupt pending bit, otherwise we couldn't determine whether an IRQ is pending or if belongs to un old already handled tick IRQ. Note that this patch only fixes the DrvMgr GPTIMER driver and TLIB, the standard LEON3 GPTIMER driver still needs a fix.
* LEON: GPTIMER driver, Timer Library and System Clock for LEON3Daniel Hellstrom2015-04-171-0/+503
With this patch the LEON family can access the GRLIB GPTIMER using the Timer library (TLIB). A System Clock driver instead of BSP/clock/ck_init.c is provided using the TLIB. The classic clock driver is split in two parts, clock driver and timer driver. The BSPs need only to fullfill the timer interface instead of the clock interface. Currently only LEON3 uses it. The LEON2 Timer is not ported to TLIB. The GPTIMER driver is implemented using the Driver Manager, so the System Clock Driver is at this point only suitable for LEON3 when the driver manager is initialized during BSP startup. When the DrvMgr is not initialized during startup the standard BSP/clock dirver is used. LEON2 sometimes also needs to access GPTIMER when a off-chip GRLIB AMBA systems is connected, for example AMBA-over-PCI.