x86: edison: add check in init_pre uart hook