summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/console/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/console/console.c')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/console/console.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c
index 4174a71462..7e726336b0 100644
--- a/c/src/lib/libbsp/sparc/leon3/console/console.c
+++ b/c/src/lib/libbsp/sparc/leon3/console/console.c
@@ -217,7 +217,6 @@ static int leon3_console_set_attributes(int minor, const struct termios *t)
return 0;
}
-#ifndef LEON3_QEMU
/* AMBA PP find routine. Extract AMBA PnP information into data structure. */
static int find_matching_apbuart(struct ambapp_dev *dev, int index, void *arg)
{
@@ -249,18 +248,6 @@ static void leon3_console_scan_uarts(void)
ambapp_for_each(&ambapp_plb, (OPTIONS_ALL|OPTIONS_APB_SLVS), VENDOR_GAISLER,
GAISLER_APBUART, find_matching_apbuart, NULL);
}
-#else /* LEON3_QEMU */
-static void leon3_console_scan_uarts(void)
-{
- uarts = 1;
-
- apbuarts[0].regs = (struct apbuart_regs *)0x80000100;
-#if CONSOLE_USE_INTERRUPTS
- apbuarts[0].irq = 3;
-#endif
- apbuarts[0].freq_hz = 40000000;
-}
-#endif /* LEON3_QEMU */
/*
* Console Device Driver Entry Points