mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	Move this uncommon header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			551 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			551 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2019 Microchip Technology Inc.
 | |
|  * Padmarao Begari <padmarao.begari@microchip.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <dm.h>
 | |
| #include <init.h>
 | |
| #include <asm/io.h>
 | |
| 
 | |
| #define MPFS_SYSREG_SOFT_RESET	((unsigned int *)0x20002088)
 | |
| 
 | |
| int board_init(void)
 | |
| {
 | |
| 	/* For now nothing to do here. */
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| int board_early_init_f(void)
 | |
| {
 | |
| 	unsigned int val;
 | |
| 
 | |
| 	/* Reset uart peripheral */
 | |
| 	val = readl(MPFS_SYSREG_SOFT_RESET);
 | |
| 	val = (val & ~(1u << 5u));
 | |
| 	writel(val, MPFS_SYSREG_SOFT_RESET);
 | |
| 
 | |
| 	return 0;
 | |
| }
 |