1*aa89b554SKever Yang /*
2*aa89b554SKever Yang  * Copyright (c) 2016 Rockchip Electronics Co., Ltd
3*aa89b554SKever Yang  *
4*aa89b554SKever Yang  * SPDX-License-Identifier:     GPL-2.0+
5*aa89b554SKever Yang  */
6*aa89b554SKever Yang #include <asm/io.h>
7*aa89b554SKever Yang #include <asm/arch/hardware.h>
8*aa89b554SKever Yang 
9*aa89b554SKever Yang #define GRF_SOC_CON2 0x24c
10*aa89b554SKever Yang 
11*aa89b554SKever Yang int arch_cpu_init(void)
12*aa89b554SKever Yang {
13*aa89b554SKever Yang 	/* We do some SoC one time setting here. */
14*aa89b554SKever Yang 
15*aa89b554SKever Yang 	/* Use rkpwm by default */
16*aa89b554SKever Yang 	rk_setreg(GRF_SOC_CON2, 1 << 0);
17*aa89b554SKever Yang 
18*aa89b554SKever Yang 	return 0;
19*aa89b554SKever Yang }
20