blob: af3a465cc32a49eba1d73c3fc814241ebdf1d6ed [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Kever Yangaa89b552016-08-12 17:58:12 +08002/*
3 * Copyright (c) 2016 Rockchip Electronics Co., Ltd
Kever Yangaa89b552016-08-12 17:58:12 +08004 */
5#include <asm/io.h>
Kever Yang15f09a12019-03-28 11:01:23 +08006#include <asm/arch-rockchip/hardware.h>
Kever Yangaa89b552016-08-12 17:58:12 +08007
Kever Yang1b64a052016-10-07 15:59:49 +08008#define GRF_SOC_CON2 0xff77024c
Kever Yangaa89b552016-08-12 17:58:12 +08009
10int 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}