mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	xilinx: zynq: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME for dfu_alt_info
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME stores the name of firmware file to be loaded by SPL. Name can be selected via Kconfig that's why use the macro. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/601fbc2dfd16b4708fc6b5f86954e10add43334e.1660055571.git.michal.simek@amd.com
This commit is contained in:
		
							parent
							
								
									ce183fd79c
								
							
						
					
					
						commit
						93020aa3dc
					
				@ -177,12 +177,13 @@ void set_dfu_alt_info(char *interface, char *devstr)
 | 
			
		||||
	case ZYNQ_BM_SD:
 | 
			
		||||
		snprintf(buf, DFU_ALT_BUF_LEN,
 | 
			
		||||
			 "mmc 0:1=boot.bin fat 0 1;"
 | 
			
		||||
			 "u-boot.img fat 0 1");
 | 
			
		||||
			 "%s fat 0 1", CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
 | 
			
		||||
		break;
 | 
			
		||||
	case ZYNQ_BM_QSPI:
 | 
			
		||||
		snprintf(buf, DFU_ALT_BUF_LEN,
 | 
			
		||||
			 "sf 0:0=boot.bin raw 0 0x1500000;"
 | 
			
		||||
			 "u-boot.img raw 0x%x 0x500000",
 | 
			
		||||
			 "%s raw 0x%x 0x500000",
 | 
			
		||||
			 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
 | 
			
		||||
			 CONFIG_SYS_SPI_U_BOOT_OFFS);
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user