summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3288
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2016-08-12 17:58:12 +0800
committerSimon Glass <sjg@chromium.org>2016-09-22 07:32:22 -0600
commitaa89b554b7bcb6b0d1fd1ba6ac39384d93b4b002 (patch)
treee2d28293416cb0b1a22146f51fe93f05fe3462a8 /arch/arm/mach-rockchip/rk3288
parente2e4e1453680a0a5e87f3976bf48ebfe02c9e192 (diff)
downloadu-boot-imx-aa89b554b7bcb6b0d1fd1ba6ac39384d93b4b002.zip
u-boot-imx-aa89b554b7bcb6b0d1fd1ba6ac39384d93b4b002.tar.gz
u-boot-imx-aa89b554b7bcb6b0d1fd1ba6ac39384d93b4b002.tar.bz2
rk3288: add arch_cpu_init for rk3288
We do some SoC level one time setting initialization in arch_cpu_init. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3288')
-rw-r--r--arch/arm/mach-rockchip/rk3288/Makefile1
-rw-r--r--arch/arm/mach-rockchip/rk3288/rk3288.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3288/Makefile b/arch/arm/mach-rockchip/rk3288/Makefile
index 5ec3f0d..b5b28ef 100644
--- a/arch/arm/mach-rockchip/rk3288/Makefile
+++ b/arch/arm/mach-rockchip/rk3288/Makefile
@@ -5,5 +5,6 @@
#
obj-y += clk_rk3288.o
+obj-y += rk3288.o
obj-y += sdram_rk3288.o
obj-y += syscon_rk3288.o
diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c
new file mode 100644
index 0000000..92f34bb
--- /dev/null
+++ b/arch/arm/mach-rockchip/rk3288/rk3288.c
@@ -0,0 +1,19 @@
+/*
+ * 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;
+}