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