arm64: zynqmp: Add SMMU support for SATA IP
[oweals/u-boot.git] / common / spl / spl_ubi.c
index 24633f4766e56172b06a7c74c1e030303a647e7f..83089335a7887714cdb572d26bd2dac5ed98d445 100644 (file)
@@ -38,7 +38,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image,
                goto out;
        }
        info.ubi = (struct ubi_scan_info *)CONFIG_SPL_UBI_INFO_ADDR;
-       info.fastmap = 1;
+       info.fastmap = IS_ENABLED(CONFIG_MTD_UBI_FASTMAP);
 
        info.peb_offset = CONFIG_SPL_UBI_PEB_OFFSET;
        info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET;