Simplificaiton: remove JTAG_UART_write_mm and instead access memory-mapped UART registers directly