mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	If CONFIG_MICRO_SUPPORT_CARD is enabled, U-Boot initialize SBC (System Bus Controller), which may not be really necessary. Check the "socionext,uniphier-system-bus" node in DT run-time. If and only if it is found and its "status" property is okay, initialize the SBC block. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			424 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			424 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2011-2015 Panasonic Corporation
 | |
|  * Copyright (C) 2015-2017 Socionext Inc.
 | |
|  */
 | |
| 
 | |
| #include <linux/io.h>
 | |
| 
 | |
| #include "../init.h"
 | |
| #include "sbc-regs.h"
 | |
| 
 | |
| void uniphier_ld4_sbc_init(void)
 | |
| {
 | |
| 	u32 tmp;
 | |
| 
 | |
| 	if (!uniphier_sbc_is_enabled())
 | |
| 		return;
 | |
| 
 | |
| 	uniphier_sbc_init_savepin();
 | |
| 
 | |
| 	/* system bus output enable */
 | |
| 	tmp = readl(PC0CTRL);
 | |
| 	tmp &= 0xfffffcff;
 | |
| 	writel(tmp, PC0CTRL);
 | |
| }
 |