Rewriting uart driver WiP

Signed-off-by: Carlo Caione <carlo@caione.org>