fw_cfg: fix FW_CFG_BOOT_DEVICE update on ppc and sparc