Skip to content
Snippets Groups Projects
Commit aa89b554 authored by Kever Yang's avatar Kever Yang Committed by Simon Glass
Browse files

rk3288: add arch_cpu_init for rk3288


We do some SoC level one time setting initialization in
arch_cpu_init.

Signed-off-by: default avatarKever Yang <kever.yang@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent e2e4e145
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,6 @@
#
obj-y += clk_rk3288.o
obj-y += rk3288.o
obj-y += sdram_rk3288.o
obj-y += syscon_rk3288.o
/*
* Copyright (c) 2016 Rockchip Electronics Co., Ltd
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <asm/io.h>
#include <asm/arch/hardware.h>
#define GRF_SOC_CON2 0x24c
int arch_cpu_init(void)
{
/* We do some SoC one time setting here. */
/* Use rkpwm by default */
rk_setreg(GRF_SOC_CON2, 1 << 0);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment