diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-14 09:24:33 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:30 +0200 |
commit | efd43ad162ac92d2e4a1ce9911f92282dab3b1eb (patch) | |
tree | a87182f97aef60fcf65107cbd37986c4b6411952 /c/src/lib/libbsp/sparc | |
parent | LEON3: clock irq always same as timer instance (diff) | |
download | rtems-efd43ad162ac92d2e4a1ce9911f92282dab3b1eb.tar.bz2 |
LEON3: simplify amba initialization
Diffstat (limited to 'c/src/lib/libbsp/sparc')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/amba/amba.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c index 60a236ce04..7f55a241a0 100644 --- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c +++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c @@ -127,12 +127,6 @@ void amba_initialize(void) /* Init Extended IRQ controller if available */ leon3_ext_irq_init(); - /* If we are running without Driver Manager at startup, we must still - * assure that Timer and Console UART is working. So we can not - * depend on the DrvMgr capable Timer and Console UART drivers, - * instead we use the small-footprint drivers. - */ -#ifndef RTEMS_DRVMGR_STARTUP /* find GP Timer */ adev = (void *)ambapp_for_each(&ambapp_plb, (OPTIONS_ALL|OPTIONS_APB_SLVS), VENDOR_GAISLER, GAISLER_GPTIMER, @@ -156,7 +150,8 @@ void amba_initialize(void) if (leon3_timer_prescaler) LEON3_Timer_Regs->scaler_reload = leon3_timer_prescaler; } -#else + +#ifdef RTEMS_DRVMGR_STARTUP /* Register Root bus, Use GRLIB AMBA PnP bus as root bus for LEON3 */ ambapp_grlib_root_register(&grlib_bus_config); #endif |