blob: a725abc5a5640cf0daba060dac7a9fc10c6dab28 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Kever Yang52ead2f2016-08-12 17:58:12 +08002/*
3 * Copyright (c) 2016 Rockchip Electronics Co., Ltd
Kever Yang52ead2f2016-08-12 17:58:12 +08004 */
5#include <asm/io.h>
6#include <asm/arch/hardware.h>
7
Kever Yang2e8f83a2016-10-07 15:59:49 +08008#define GRF_SOC_CON2 0xff77024c
Kever Yang52ead2f2016-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}