]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-uniphier/ph1-pro4/sg_init.c
ARM: UniPhier: consolidate MEMCONF setting code
[u-boot] / arch / arm / mach-uniphier / ph1-pro4 / sg_init.c
1 /*
2  * Copyright (C) 2011-2015 Panasonic Corporation
3  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <asm/io.h>
9 #include <mach/sg-regs.h>
10
11 void sg_init(void)
12 {
13         u32 tmp;
14
15         /* Input ports must be enabled before deasserting reset of cores */
16         tmp = readl(SG_IECTRL);
17         tmp |= 1 << 6;
18         writel(tmp, SG_IECTRL);
19 }