uboot_api: cleanup code by using platform_set_mr