spl: Make UBI fastmap support Kconfig selectable
Fastmap was always enabled in ubispl, make it selectable by CONFIG_MTD_UBI_FASTMAP. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
		
							parent
							
								
									cb86d3746a
								
							
						
					
					
						commit
						ffc282e199
					
				|  | @ -38,7 +38,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image, | ||||||
| 		goto out; | 		goto out; | ||||||
| 	} | 	} | ||||||
| 	info.ubi = (struct ubi_scan_info *)CONFIG_SPL_UBI_INFO_ADDR; | 	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.peb_offset = CONFIG_SPL_UBI_PEB_OFFSET; | ||||||
| 	info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET; | 	info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue