mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
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>
This commit is contained in:
parent
e2e4e14536
commit
aa89b554b7
2 changed files with 20 additions and 0 deletions
|
@ -5,5 +5,6 @@
|
|||
#
|
||||
|
||||
obj-y += clk_rk3288.o
|
||||
obj-y += rk3288.o
|
||||
obj-y += sdram_rk3288.o
|
||||
obj-y += syscon_rk3288.o
|
||||
|
|
19
arch/arm/mach-rockchip/rk3288/rk3288.c
Normal file
19
arch/arm/mach-rockchip/rk3288/rk3288.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue