mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	There is a bunch of duplication in the System Bus Controller init code. Roughly, there are two types in the SBC mode: Adress/Data Multiplex Mode and Save Pins Mode. Consolidate per-SoC functions into the two, plus per-SoC optional init code. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			379 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			379 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2011-2016 Masahiro Yamada <yamada.masahiro@socionext.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #include <linux/io.h>
 | |
| 
 | |
| #include "../init.h"
 | |
| #include "sbc-regs.h"
 | |
| 
 | |
| int uniphier_ld4_sbc_init(const struct uniphier_board_data *bd)
 | |
| {
 | |
| 	u32 tmp;
 | |
| 
 | |
| 	/* system bus output enable */
 | |
| 	tmp = readl(PC0CTRL);
 | |
| 	tmp &= 0xfffffcff;
 | |
| 	writel(tmp, PC0CTRL);
 | |
| 
 | |
| 	return 0;
 | |
| }
 |