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