cleanup ifxmips and add support for both ttyS