summaryrefslogtreecommitdiffstats
path: root/sys/mips/rt305x/uart_cpu_rt305x.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/rt305x/uart_cpu_rt305x.c')
-rw-r--r--sys/mips/rt305x/uart_cpu_rt305x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/rt305x/uart_cpu_rt305x.c b/sys/mips/rt305x/uart_cpu_rt305x.c
index b9225a1..345db46 100644
--- a/sys/mips/rt305x/uart_cpu_rt305x.c
+++ b/sys/mips/rt305x/uart_cpu_rt305x.c
@@ -77,6 +77,10 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
uart_bus_space_io = NULL;
uart_bus_space_mem = mips_bus_space_generic;
+#ifdef RT305X_USE_UART
+ di->bas.bsh = MIPS_PHYS_TO_KSEG1(UART_BASE);
+#else
di->bas.bsh = MIPS_PHYS_TO_KSEG1(UARTLITE_BASE);
+#endif
return (0);
}
OpenPOWER on IntegriCloud