arm: sunxi: Move spl_boot_device in a separate function