diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2019-07-22 15:02:06 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-07-29 05:26:41 +0300 |
commit | 55cdcebc99ec678da82a56a73dbc7201f3bc035a (patch) | |
tree | 6e707d52cff0f6f6c68d91d17a62dd52454c2c2d /arch/arm/mach-rockchip/rk322x | |
parent | 7e719d94a55ff98145cbaa5117b297ac17b4550e (diff) | |
download | u-boot-55cdcebc99ec678da82a56a73dbc7201f3bc035a.tar.xz |
rockchip: rk322x: move SoC setting into arch_cpu_init()
The SoC one time setting should go to arch_cpu_init() in
rk322x.c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk322x')
-rw-r--r-- | arch/arm/mach-rockchip/rk322x/rk322x.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk322x/rk322x.c b/arch/arm/mach-rockchip/rk322x/rk322x.c index a8677b9783..cd0bf8a70c 100644 --- a/arch/arm/mach-rockchip/rk322x/rk322x.c +++ b/arch/arm/mach-rockchip/rk322x/rk322x.c @@ -57,6 +57,17 @@ int arch_cpu_init(void) /* Disable the ddr secure region setting to make it non-secure */ rk_clrreg(&sgrf->soc_con[0], 0x4000); +#else +#define GRF_BASE 0x11000000 + static struct rk322x_grf * const grf = (void *)GRF_BASE; + /* + * The integrated macphy is enabled by default, disable it + * for saving power consuming. + */ + rk_clrsetreg(&grf->macphy_con[0], + MACPHY_CFG_ENABLE_MASK, + 0 << MACPHY_CFG_ENABLE_SHIFT); + #endif return 0; } |