Replace sxiuart(4) with the mostly compatible com(4).
authorpatrick <patrick@openbsd.org>
Wed, 17 Aug 2016 13:05:02 +0000 (13:05 +0000)
committerpatrick <patrick@openbsd.org>
Wed, 17 Aug 2016 13:05:02 +0000 (13:05 +0000)
commit8a5a677801bbe955af3dd26f684214dcc7e14b88
tree3147e794067281962210900b67a3bd77710ad5cd
parentea215fc4e672c341d97565e0b83413393cee32b2
Replace sxiuart(4) with the mostly compatible com(4).

The Synopsys DesignWare 8250 throws an interrupt if it detects a write
to LCR while it was busy.  Read the USR register to clear the interrupt
so we don't get flooded.

The sunxi machines also use a different frequency on the consoles.  As
we have no clock framework, especially not for early consoles, match on
known Allwinner compatibles to set a known frequency.

ok kettenis@ mglocker@
sys/arch/armv7/armv7/platform.c
sys/arch/armv7/conf/GENERIC
sys/arch/armv7/conf/RAMDISK
sys/arch/armv7/dev/com_fdt.c