mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Convert this to use events instead of calling a function directly in the init sequence. Rename it to arch_fsp_init_f() to distinguish it from the one that happens after relocation. For FSPv2 nothing needs to be done here, so drop the empty function. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			26 lines
		
	
	
		
			535 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			535 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0+
 | 
						|
/*
 | 
						|
 * Copyright 2019 Google LLC
 | 
						|
 * Written by Simon Glass <sjg@chromium.org>
 | 
						|
 */
 | 
						|
 | 
						|
#include <common.h>
 | 
						|
#include <init.h>
 | 
						|
#include <asm/fsp/fsp_support.h>
 | 
						|
 | 
						|
void board_final_cleanup(void)
 | 
						|
{
 | 
						|
	u32 status;
 | 
						|
 | 
						|
	/* TODO(sjg@chromium.org): This causes Linux to crash */
 | 
						|
	return;
 | 
						|
 | 
						|
	/* call into FspNotify */
 | 
						|
	debug("Calling into FSP (notify phase INIT_PHASE_END_FIRMWARE): ");
 | 
						|
	status = fsp_notify(NULL, INIT_PHASE_END_FIRMWARE);
 | 
						|
	if (status)
 | 
						|
		debug("fail, error code %x\n", status);
 | 
						|
	else
 | 
						|
		debug("OK\n");
 | 
						|
}
 |