uboot: support boards with tantos switch and small code and format cleanups