Kever Yang | aa89b55 | 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 | |
Kever Yang | 1b64a05 | 2016-10-07 15:59:49 +0800 | [diff] [blame] | 9 | #define GRF_SOC_CON2 0xff77024c |
Kever Yang | aa89b55 | 2016-08-12 17:58:12 +0800 | [diff] [blame] | 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 | } |