mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	This breaks chromebook_coral which says: Video: No video mode configured in FSP! This reverts commit 2e9313179a846b581c0fc3f6a49e19f3d343efa8. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			41 lines
		
	
	
		
			801 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			801 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Passing basic information from SPL to U-Boot proper
 | |
|  *
 | |
|  * Copyright 2018 Google, Inc
 | |
|  */
 | |
| 
 | |
| #include <handoff.h>
 | |
| #include <asm/global_data.h>
 | |
| 
 | |
| DECLARE_GLOBAL_DATA_PTR;
 | |
| 
 | |
| void handoff_save_dram(struct spl_handoff *ho)
 | |
| {
 | |
| 	struct bd_info *bd = gd->bd;
 | |
| 	int i;
 | |
| 
 | |
| 	ho->ram_size = gd->ram_size;
 | |
| 
 | |
| 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
 | |
| 		ho->ram_bank[i].start = bd->bi_dram[i].start;
 | |
| 		ho->ram_bank[i].size = bd->bi_dram[i].size;
 | |
| 	}
 | |
| }
 | |
| 
 | |
| void handoff_load_dram_size(struct spl_handoff *ho)
 | |
| {
 | |
| 	gd->ram_size = ho->ram_size;
 | |
| }
 | |
| 
 | |
| void handoff_load_dram_banks(struct spl_handoff *ho)
 | |
| {
 | |
| 	struct bd_info *bd = gd->bd;
 | |
| 	int i;
 | |
| 
 | |
| 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
 | |
| 		bd->bi_dram[i].start = ho->ram_bank[i].start;
 | |
| 		bd->bi_dram[i].size = ho->ram_bank[i].size;
 | |
| 	}
 | |
| }
 |