mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	Move this header out of the common header. Network support is used in quite a few places but it still does not warrant blanket inclusion. Note that this net.h header itself has quite a lot in it. It could be split into the driver-mode support, functions, structures, checksumming, etc. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			24 lines
		
	
	
		
			398 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			398 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <irq_func.h>
 | |
| #include <asm/cache.h>
 | |
| 
 | |
| /*
 | |
|  * cleanup_before_linux() is called just before we call linux
 | |
|  * it prepares the processor for linux
 | |
|  *
 | |
|  * we disable interrupt and caches.
 | |
|  */
 | |
| int cleanup_before_linux(void)
 | |
| {
 | |
| 	disable_interrupts();
 | |
| 
 | |
| 	cache_flush();
 | |
| 
 | |
| 	return 0;
 | |
| }
 |