Make creation of CBMEM_ID_RESUME_SCRATCH depending on Agesa
The CBMEM_ID_RESUME_SCRATCH area is only used by Agesa code, on one particular board (AMD Persimmon). Make the creation of that section depending on Agesa so it does consume space on non-Agesa systems. Change-Id: I2a1a4f76991ef936ea68cf75928b20b7ed132b84 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/992 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Stefan Reinauer
					
				
			
			
				
	
			
			
			
						parent
						
							f125d80135
						
					
				
				
					commit
					6870f0cc29
				
			@@ -237,8 +237,10 @@ struct lb_memory *write_tables(void)
 | 
				
			|||||||
	 * the result right now. If it fails, ACPI resume will be disabled.
 | 
						 * the result right now. If it fails, ACPI resume will be disabled.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	cbmem_add(CBMEM_ID_RESUME, HIGH_MEMORY_SAVE);
 | 
						cbmem_add(CBMEM_ID_RESUME, HIGH_MEMORY_SAVE);
 | 
				
			||||||
 | 
					#if CONFIG_NORTHBRIDGE_AMD_AGESA_FAMILY14
 | 
				
			||||||
	cbmem_add(CBMEM_ID_RESUME_SCRATCH, CONFIG_HIGH_SCRATCH_MEMORY_SIZE);
 | 
						cbmem_add(CBMEM_ID_RESUME_SCRATCH, CONFIG_HIGH_SCRATCH_MEMORY_SIZE);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if CONFIG_MULTIBOOT
 | 
					#if CONFIG_MULTIBOOT
 | 
				
			||||||
	post_code(0x9d);
 | 
						post_code(0x9d);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user