mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	The GRF base address is missing, fix it. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			336 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			336 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2016 Rockchip Electronics Co., Ltd
 | |
|  *
 | |
|  * SPDX-License-Identifier:     GPL-2.0+
 | |
|  */
 | |
| #include <asm/io.h>
 | |
| #include <asm/arch/hardware.h>
 | |
| 
 | |
| #define GRF_SOC_CON2 0xff77024c
 | |
| 
 | |
| int arch_cpu_init(void)
 | |
| {
 | |
| 	/* We do some SoC one time setting here. */
 | |
| 
 | |
| 	/* Use rkpwm by default */
 | |
| 	rk_setreg(GRF_SOC_CON2, 1 << 0);
 | |
| 
 | |
| 	return 0;
 | |
| }
 |