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