From cd64fbfb6847b91fb51a2387ba93a255a5afa18d Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Fri, 16 Dec 2011 10:37:49 +0100 Subject: LEON: GPTIMER driver, Timer Library and System Clock for LEON3 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. --- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/lib/libbsp/sparc/leon3/include/bsp.h') diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h index 9239d2bc9b..37dfedb1e9 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h +++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h @@ -255,6 +255,7 @@ extern const unsigned char LEON3_irq_to_cpu[32]; * image bigger. */ #define AMBAPPBUS_INFO_AVAIL /* AMBAPP Bus driver */ +#define GPTIMER_INFO_AVAIL /* GPTIMER Timer driver */ #ifdef __cplusplus } -- cgit v1.2.3