blob: acc3b7932a3c02e020641538003674cbe169f74f [file] [log] [blame]
Kever Yangaa89b552016-08-12 17:58:12 +08001/*
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 Yang1b64a052016-10-07 15:59:49 +08009#define GRF_SOC_CON2 0xff77024c
Kever Yangaa89b552016-08-12 17:58:12 +080010
11int 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}